boilr
boilr copied to clipboard
Have the option to use toml instead of json
I'm not sure if you have taken a look at https://github.com/spf13/viper
- setting defaults
- reading from JSON, TOML, YAML, HCL, and Java properties config files
- live watching and re-reading of config files (optional)
- reading from environment variables
- reading from remote config systems (etcd or Consul), and watching changes
- reading from command line flags
- reading from buffer
- setting explicit values
As added bonus, Viper has the ability to bind to flags. Specifically, Viper supports Pflags as used in the Cobra library.
Yes, I know of it :) FYI I will not implement it in boilr, but if I choose to use cobra I will probably use Viper as well in my rewrite here: stancr