Registry / config / caarlos0-env-v6

caarlos0-env-v6

JSON →
library6.10.1gogounverified

A simple and zero-dependencies library to parse environment variables into structs.

go get github.com/caarlos0/env/v6
INSTALL
IMPORT
SIG · CAARLOS0-ENV-V6
C
caarlos0-env-v6
configgov6.10.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/caarlos0/env/v6

Parses environment variables into a struct.

package main import ( "fmt" "github.com/caarlos0/env/v6" ) type Config struct { Port int `env:"PORT" envDefault:"3000"` } func main() { var cfg Config env.Parse(&cfg) fmt.Println(cfg.Port) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

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