github.com/MildC/go-envconfig (go): Package cleanenv gives you a single tool to read application configuration from several sources with ease.  - read from several file formats (YAML, JSON, TOML, ENV, EDN) and parse into the internal structure;  - read environment variables into the internal structure;  - output environment variable list with descriptions into help output;  - custom variable readers (e.g. if you want to read from remote config server, etc).  You can just prepare the config structure and fill it from the config file and environment variables.  You can list all of your environment variables by means of help output:  Then run go run main.go -h and the output will include:  For more detailed information check examples and example tests.  Example_setter uses type with a custom setter to parse environment variable data   Example_updater uses a type with a custom updater
Keywords: configuration|environment-configuration|environment-variables|hacktoberfest