io/ioutil.ReadDir
standard libraryThe 2786th most-called standard-library function by production calls. Called 366 times across 111 modules; 231 of those run outside tests and generated code.
No change in production calls since 2026-W48.
- prod calls
- 231
- non-test, non-generated
- all calls
- 366
- total callsites
- modules
- 111
- distinct callers
- in loop
- 7%
- of prod calls
- in tests
- 37%
- 135 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 16 7%
- CockroachDB 9 4%
- Terraform 5 2%
- Dgraph 4 2%
- GitHub CLI 4 2%
where it's called
Callsites in the wild
12 representative callsites of 366, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
IBM-Cloud/bluemix-go @v0.0.0-20261118105617-97a3d058599c
in loop -
bettercap/bettercap @v0.0.0-20240809160008-76e136a18ed4
in loop -
elastic/beats @v6.8.23+incompatible
x-pack/auditbeat/module/system/package/package_homebrew.go:42 ↗
in loop - in loop
-
inancgumus/learngo @v0.0.0-20261122191141-f5bec8e22074
17-project-empty-file-finder/exercises/3-print-directories/solution/main.go:27 ↗
in loop -
therecipe/qt @v0.0.0-20200904063919-c0c124a5770d
in loop -
toolkits/pkg @v1.3.11
in loop - in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call ReadDir most in this snapshot.
- github.com/hyperledger/fabric267%
- github.com/grafana/mimir205%
- github.com/cockroachdb/cockroach154%
- github.com/IBM-Cloud/bluemix-go144%
- github.com/cli/cli134%
siblings
More from io/ioutil
The other most-called functions in this package. See all →