Registry / config / gassara-kys-envconfig

gassara-kys-envconfig

JSON →
library1.4.4gogounverified

Decodes environment variables into Go structs based on a user-defined specification.

go get github.com/gassara-kys/envconfig
INSTALL
IMPORT
SIG · GASSARA-KYS-ENVCON
G
gassara-kys-envconfig
configgov1.4.4
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/gassara-kys/envconfig

Loads environment variables into a struct with defaults.

package main import ( "fmt" "github.com/gassara-kys/envconfig" ) type Config struct { Host string `env:"HOST" default:"localhost"` } func main() { var cfg Config envconfig.Load(&cfg) fmt.Println(cfg.Host) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
24
Resources
gassara-kys-envconfig — go get gassara-kys-envconfig · libregistry