os.LookupEnv
standard libraryThe 527th most-called standard-library function by production calls. Called 2,609 times across 396 modules; 1,486 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (1,471 → 1,486)
- prod calls
- 1,486
- non-test, non-generated
- all calls
- 2,609
- total callsites
- modules
- 396
- distinct callers
- in loop
- 8%
- of prod calls
- in tests
- 37%
- 964 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 LookupEnv from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 61 4%
- Istio 60 4%
- Docker 47 3%
- HashiCorp 37 2%
- Vault 28 2%
where it's called
Callsites in the wild
12 representative callsites of 2,609, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
- in loop
-
gitea.dev @v1.27.3
modules/git/gitcmd/command.go:240
in loop - in loop
- in loop
- in loop
-
air-verse/air @v1.67.4
in loop - in loop
-
alecthomas/kong @v1.16.1
in loop -
antonmedv/fx @v0.0.0-20260826144931-4f31cd3a0c5d
in loop
top callers
The modules that reach for it
The modules that call LookupEnv most in this snapshot.
- github.com/openai/openai-go/v333013%
- github.com/anthropics/anthropic-sdk-go2168%
- github.com/Azure/azure-sdk-for-go/sdk/storage/azblob763%
- github.com/therecipe/qt632%
- github.com/gastownhall/beads572%
siblings
More from os
The other most-called functions in this package. See all →