os.Chdir
standard libraryThe 2121st most-called standard-library function by production calls. Called 2,269 times across 189 modules; 285 of those run outside tests and generated code.
- prod calls
- 285
- non-test, non-generated
- all calls
- 2,269
- total callsites
- modules
- 189
- distinct callers
- in loop
- 6%
- of prod calls
- in tests
- 87%
- 1,984 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 Chdir from notable Go projects. Open one on the map to see what else it hammers.
- Docker 10 4%
- HashiCorp 5 2%
- Kubernetes 5 2%
- Dgraph 4 1%
- Tailscale 4 1%
where it's called
Callsites in the wild
12 representative callsites of 2,269, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop - in loop
- in loop
-
u-root/u-root @v0.16.0
in loop - in loop
-
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop -
u-root/u-root @v0.16.0
in loop -
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop -
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop -
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop -
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop
top callers
The modules that reach for it
The modules that call Chdir most in this snapshot.
- github.com/gastownhall/gastown33115%
- github.com/steveyegge/gastown33115%
- github.com/gastownhall/beads31114%
- github.com/steveyegge/beads31114%
- github.com/larksuite/cli1788%
siblings
More from os
The other most-called functions in this package. See all →