4 ms·
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.
by hnarn 6y ago
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.
- PenguinCoder 6y agoI like https://github.com/jpillora/opts https://github.com/jpillora/opts for Go arg parsing. It has better, sane defaults with long/short opts.
- hnarn 6y agoCool, I'll check it out. There's something attractive about using stuff from the standard library though.