Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
MetaCosm
· 11y ago · 0 comments
There are a lot of ways to make arguments nicer in Go. The simple on is to just use a configuration struct (or anon struct) at that has nice names. But, for complex stuff, functional options as laid out by Dave Cheney:
http://dave.cheney.net/2014/10/17/functional-options-for-fri...
(video:
https://www.youtube.com/watch?v=24lFtGHWxAQ
)
Comments
No comments yet.
Better HN