sethvargo/go-envconfig
A Go library for parsing struct tags from environment variables. observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 93
- Release rhythm 93
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 1
- age_days: 2281
- days_rel: 45
- days_push: 45
- n_releases_24m: 8
Adoption not part of the score
1234 stars · 70 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Go library that populates struct fields from environment variables using struct tags. It supports required fields, defaults, prefixes, nested structs, and lookup mutations such as secret resolution.
Use cases
- parse environment variables into a Go config struct
- load app configuration from env vars with defaults
- require certain environment variables at startup
- populate nested config structs with env prefixes
- resolve secrets from a lookup function during config loading
When to choose
- you want declarative, struct-tag-based env config in Go
- you need defaults, required fields, or prefixes for shared config
- you want a small, focused, well-maintained library
When to avoid
- your configuration comes from files or remote sources rather than env vars
- you need complex validation beyond simple required/default handling
Facets
library · maturity stable
configuration-management developer-tools developer-tools backend go cross-platform environment-variables struct-tags config-parsing twelve-factor configuration
1 source
- readme: https://github.com/sethvargo/go-envconfig · fetched 2026-08-28 · 85ca9683c35b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sethvargo/go-envconfig | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="sethvargo/go-envconfig")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem