os.ReadDir
standard libraryThe 426th most-called standard-library function by production calls. Called 3,793 times across 391 modules; 2,074 of those run outside tests and generated code.
0% in production calls vs 2026-W48 (2,068 → 2,074)
- prod calls
- 2,074
- non-test, non-generated
- all calls
- 3,793
- total callsites
- modules
- 391
- distinct callers
- in loop
- 13%
- of prod calls
- in tests
- 45%
- 1,719 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 ReadDir from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 108 5%
- Prometheus 66 3%
- Docker 55 3%
- containerd 41 2%
- Grafana 36 2%
where it's called
Callsites in the wild
12 representative callsites of 3,793, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop
-
moby/moby @v28.5.2+incompatible
in loop -
encr.dev @v1.58.10
pkg/emulators/storage/gcsemu/filestore.go:231
in loop - in loop
-
gitea.dev @v1.27.3
build/openapi3gen/enumscan.go:51
in loop - in loop
-
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop - in loop
-
XTLS/Xray-core @v1.260327.0
in loop
top callers
The modules that reach for it
The modules that call ReadDir most in this snapshot.
- github.com/weaviate/weaviate1925%
- github.com/gastownhall/gastown1574%
- github.com/steveyegge/gastown1574%
- github.com/esengine/DeepSeek-Reasonix1544%
- github.com/influxdata/telegraf1444%
siblings
More from os
The other most-called functions in this package. See all →