Go Optional Options with Functions Pattern
tldr code.
There’s a new link on my links page to Golang Functional Options Pattern.
I’m not a fan of competing for SEO on a post. I am a fan of sharing the work others have done and giving them credit.
I really like Option 3 from the Golang Cafe page.