os.LookupEnv
standard libraryThe 528th most-called standard-library function by production calls. Called 2,422 times across 397 modules; 1,476 of those run outside tests and generated code.
- prod calls
- 1,476
- non-test, non-generated
- all calls
- 2,422
- total callsites
- modules
- 397
- distinct callers
- in loop
- 7%
- of prod calls
- in tests
- 32%
- 787 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 46 3%
- HashiCorp 37 3%
- Vault 28 2%
where it's called
Callsites in the wild
12 representative callsites of 2,422, 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.1
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.0
in loop -
antonmedv/fx @v0.0.0-20260728113644-63eb255ad014
in loop
top callers
The modules that reach for it
The modules that call LookupEnv most in this snapshot.
- github.com/openai/openai-go/v327611%
- github.com/anthropics/anthropic-sdk-go1466%
- github.com/Azure/azure-sdk-for-go/sdk/storage/azblob743%
- github.com/therecipe/qt633%
- github.com/hashicorp/vault462%
siblings
More from os
The other most-called functions in this package. See all →