πŸ” Search
Sign in to post
Show HN: Functional options design pattern and implementation in Gohttps://archetechmes.vercel.app/blog/functional-options-go

Functional options in go are design patterns for configuring structs cleanly when there are many optional settings. Basically a function that carries a configuration change. It let the library to add configuration without continually changing the constructor shape. Comments URL: https://news.ycombinator.com/item?id=49576910 Points: 1 # Comments: 1

β†—

0trust.social media

Loading your media...

Pick a GIF β€” Giphy

Loading GIFs...