Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/coreybutler/go-localenvironment

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`.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/coreybutler/go-localenvironment
Keywords: environment-manager, environment-variables, environment-vars
License: MIT
Latest release: almost 4 years ago
First release: over 5 years ago
Namespace: github.com/coreybutler
Stars: 2 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/coreybutler
Last synced: 15 days ago

    Loading...
    Readme
    Loading...