Quick demo of how to initialize your data structure with optional configuration parameters … with sane defaults if left unspecified.
This functional config technique …
See the posts by Rob Pike (“Self-referential functions and the design of options”) and Dave Cheney (“Functional options for friendly APIs”) for more details on this technique.