Re:Dysfunctional Options Pattern in Go
by evanmoran on Saturday July 20, 2024 @06:26PM
(#41020594)
I like this write up. Nicely done! One think I have enjoyed doing is using named parameters as the options, but it does require a second struct only for the option parts:
I can see the merits of both (two structs is tedious, for sure), but I wanted to share in case others had thoughts or alternate ideas!
[ Parent
| on HN ]
There are no comments on this comment yet.