Registry / config / qiangxue-go-env

qiangxue-go-env

JSON →
library1.0.1gogounverified

A Go library for parsing environment variables into structs.

go get github.com/qiangxue/go-env
INSTALL
IMPORT
SIG · QIANGXUE-GO-ENV
Q
qiangxue-go-env
configgov1.0.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.

env
github.com/qiangxue/go-env

Loads environment variables into a struct and prints a field.

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

No known issues recorded.

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

No dependency data recorded yet.

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