Registry / config / netflix-go-env

netflix-go-env

JSON →
library0.1.2gogounverified

Package env provides struct field tags to marshal and unmarshal environment variables.

go get github.com/Netflix/go-env
INSTALL
IMPORT
SIG · NETFLIX-GO-ENV
N
netflix-go-env
configgov0.1.2
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.

env
github.com/Netflix/go-env

Unmarshal environment variables into a struct

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

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
1
Resources
netflix-go-env — go get netflix-go-env · libregistry