Registry / config / ilyakaznacheev-cleanenv

ilyakaznacheev-cleanenv

JSON →
library1.5.0gogounverified

Minimalistic configuration reader that reads environment variables and files into Go structs.

go get github.com/ilyakaznacheev/cleanenv
INSTALL
IMPORT
SIG · ILYAKAZNACHEEV-CLE
I
ilyakaznacheev-cleanenv
configgov1.5.0
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.

cleanenv
github.com/ilyakaznacheev/cleanenv

Read configuration from environment variables

package main import ( "fmt" "github.com/ilyakaznacheev/cleanenv" ) type Config struct { Port int `env:"PORT" env-default:"8080"` } func main() { var cfg Config cleanenv.ReadEnv(&cfg) fmt.Println(cfg.Port) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Resources
ilyakaznacheev-cleanenv — go get ilyakaznacheev-cleanenv · libregistry