io/ioutil.ReadDir
standard libraryThe 2467th most-called standard-library function by production calls. Called 387 times across 115 modules; 245 of those run outside tests and generated code.
- prod calls
- 245
- non-test, non-generated
- all calls
- 387
- total callsites
- modules
- 115
- distinct callers
- in loop
- 8%
- of prod calls
- in tests
- 37%
- 142 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%
- Kubernetes 9 4%
- Terraform 5 2%
- Dgraph 4 2%
where it's called
Callsites in the wild
12 representative callsites of 387, 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-20260624064701-576d2f801297
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-20250624230352-3c475a78e543
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 -
zmap/zcrypto @v0.0.0-20260725024403-2c658ce3c66f
in loop - in loop
-
k8s.io/kubernetes @v1.36.3
pkg/volume/iscsi/iscsi_util.go:946
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%
- k8s.io/kubernetes144%
siblings
More from io/ioutil
The other most-called functions in this package. See all →