github.com/coreybutler/go-localenvironment (go): localenvironment populates environment variables if they exist in `env.json` or an alternative JSON file.  For example, the directory structure might look like:  Consider the following `env.json` file (in the current working directory):  ... and the main.go file:  Running this will output `My API key is 12345.`. The same Go app can be run in any directory, each with a different `env.json` file, potentially yielding different results.  ## Nested JSON: This module automatically expands nested JSON properties (flattens attribute names). For example:  The data structure above would be flattened into an environment variable called `A_B_C` whose value is `something`.
Keywords: environment-manager|environment-variables|environment-vars