Registry / config / vrischmann-envconfig

vrischmann-envconfig

JSON →
library1.4.1gogounverified

Package envconfig implements a configuration reader which reads each value from an environment variable.

go get github.com/vrischmann/envconfig
INSTALL
IMPORT
SIG · VRISCHMANN-ENVCONF
V
vrischmann-envconfig
configgov1.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

envconfig
github.com/vrischmann/envconfig

Initialize configuration from environment variables

package main import ( "fmt" "github.com/vrischmann/envconfig" ) type Config struct { Port int `envconfig:"PORT"` Host string `envconfig:"HOST"` } func main() { var cfg Config envconfig.Init(&cfg) fmt.Printf("Host: %s, Port: %d\n", cfg.Host, cfg.Port) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.4.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
28
Resources
vrischmann-envconfig — go get vrischmann-envconfig · libregistry