io/fs.ReadDir
standard libraryThe 7907th most-called standard-library function by production calls. Called 142 times across 68 modules; 79 of those run outside tests and generated code.
1% in production calls vs 2026-W48 (78 → 79)
- prod calls
- 79
- non-test, non-generated
- all calls
- 142
- total callsites
- modules
- 68
- distinct callers
- in loop
- 4%
- of prod calls
- in tests
- 44%
- 63 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.
- Grafana 4 5%
- Kubernetes 3 4%
- Istio 2 3%
- Tailscale 2 3%
- Cilium 1 1%
where it's called
Callsites in the wild
12 representative callsites of 142, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
ory/x @v0.0.729
in loop -
anacrolix/torrent @v1.64.0
in loop test -
elimity-com/scim @v0.0.0-20261113092633-5fffe914c211
in loop test - in loop test
-
tailscale.com @v1.106.1
feature/taildrop/peerapi_test.go:525
in loop test -
-
-
-
-
gitea.dev @v1.27.3
modules/assetfs/layered.go:139
top callers
The modules that reach for it
The modules that call ReadDir most in this snapshot.
- github.com/larksuite/cli1511%
- github.com/hajimehoshi/ebiten/v275%
- github.com/microsoft/typescript-go54%
- github.com/tailscale/tailscale54%
- tailscale.com54%
siblings
More from io/fs
The other most-called functions in this package. See all →