os.Environ
standard libraryThe 521st most-called standard-library function by production calls. Called 2,306 times across 406 modules; 1,532 of those run outside tests and generated code.
2% in production calls vs 2026-W37 (1,502 → 1,532)
- prod calls
- 1,532
- non-test, non-generated
- all calls
- 2,306
- total callsites
- modules
- 406
- distinct callers
- in loop
- 3%
- of prod calls
- in tests
- 34%
- 774 calls
- resolved
- 100%
- to a known target
resolution mix
How each call resolves
How each call was attributed. Only resolved kinds, where the target function is known, count toward the ranking. Interface dispatch and unresolved receivers are reported separately and never guessed. Read the taxonomy →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into Environ from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 47 3%
- containerd 41 3%
- Docker 36 2%
- Tailscale 30 2%
- Gitea 27 2%
where it's called
Callsites in the wild
12 representative callsites of 2,306, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
etcd-io/etcd @v2.3.8+incompatible
in loop -
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop - in loop
- in loop
-
XTLS/Xray-core @v1.260327.0
in loop -
apex/up @v1.7.1
in loop -
buildpacks/lifecycle @v0.21.20
in loop -
coreos/etcd @v2.3.8+incompatible
in loop - in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call Environ most in this snapshot.
- github.com/gastownhall/gastown1125%
- github.com/steveyegge/gastown1125%
- github.com/urfave/cli/v2613%
- github.com/gastownhall/beads562%
- github.com/steveyegge/beads562%
siblings
More from os
The other most-called functions in this package. See all →