Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
hnarn
· 6y ago · 0 comments
I also really like the "flag" package for Go, it generates the help text for you and easily lets you set defaults as well as helps you type-check inputs.
Comments
[–]
PenguinCoder
6y ago
I like
https://github.com/jpillora/opts
for Go arg parsing. It has better, sane defaults with long/short opts.
[–]
hnarn
OP
6y ago
Cool, I'll check it out. There's something attractive about using stuff from the standard library though.