kelseyhightower/envconfig sits at 5.5k stars on GitHub, written primarily in Go. Golang library for managing configuration data from environment variables
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Envconfig has automatic support for CamelCased struct elements when the
split_words:"true" tag is supplied. Without this tag, AutoSplitVar above
would look for an environment variable called MYAPP_AUTOSPLITVAR. With the
setting applied it will look for MYAPP_AUTO_SPLIT_VAR. Note that numbers
will get globbed into the previous word. If the setting does not do the
right thing, you may use a manual override.
Envconfig will process value for ManualOverride1 by populating it with the
value for MYAPP_MANUAL_OVERRIDE_1. Without this struct tag, it would have
instead looked up MYAPP_MANUALOVERRIDE1. With the split_words:"true" tag
it would have looked up MYAPP_MANUAL_OVERRIDE1.
export MYAPP_MANUAL_OVERRIDE_1="this will be the value"
# export MYAPP_MANUALOVERRIDE1="and this will not"
If envconfig can't find an environment variable value for MYAPP_DEFAULTVAR,
it will populate it with "foobar" as a default value.
If envconfig can't find an environment variable value for MYAPP_REQUIREDVAR,
it will return an error when asked to process the struct. If
MYAPP_REQUIREDVAR is present but empty, envconfig will not return an error.
If envconfig can't find an environment variable in the form PREFIX_MYVAR, and there
is a struct tag defined, it will try to populate your variable with an environment
variable that directly matches the envconfig tag in your struct definition:
Yes — kelseyhightower/envconfig ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/kelseyhightower/envconfig.
What is kelseyhightower/envconfig?
kelseyhightower/envconfig (kelseyhightower/envconfig) is a Go project on GitHub. From the project's own README: Golang library for managing configuration data from environment variables
Where do I read more about kelseyhightower/envconfig?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/kelseyhightower/envconfig is the definitive source.
Read full README in the tab above.
Is envconfig worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of envconfig.