I've designed a tiny library for config management: cleanenv.
It uses regular structures with tags, which means, that you can read flags or whatever into this structure and then override it with values from config and environment (or conversely).
We're a place where coders share, stay up-to-date and grow their careers.
I've just found this package to be what I like flag first
Not that complex(like viper), still using flag( explicit ), but provide env parse and config file loading.
github.com/peterbourgon/ff
I've designed a tiny library for config management: cleanenv.
It uses regular structures with tags, which means, that you can read flags or whatever into this structure and then override it with values from config and environment (or conversely).