Awesome
Config
Package config provides convenient access methods to configuration stored as JSON or YAML.
This is a fork of the original version. This version extends the functionality of the original without losing compatibility. Major features added:
Set(path string, value interface{}) error
methodEnv() *config.Config
method, for OS environment variables parsingFlag() *config.Config
method, for command line arguments parsing usign pkg/flag singletonArgs(args ...string) *config.Config
method, for command line arguments parsingU*
methodsCopy(...path) (*config.config, error)
methodExtend(*config.Config) (*config.Config, error)
methodError() error
method to show last parsing error, works only with.Args()
method
Example and more information you can find here.