io/fs.ReadFile
standard libraryThe 4419th most-called standard-library function by production calls. Called 255 times across 85 modules; 136 of those run outside tests and generated code.
10% in production calls vs 2026-W37 (151 → 136)
- prod calls
- 136
- non-test, non-generated
- all calls
- 255
- total callsites
- modules
- 85
- distinct callers
- in loop
- 25%
- of prod calls
- in tests
- 47%
- 119 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 ReadFile from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 8 6%
- Flux 3 2%
- Go (golang.org/x) 3 2%
- Hugo 3 2%
- Gitea 2 1%
where it's called
Callsites in the wild
12 representative callsites of 255, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
gitea.dev @v1.27.3
modules/assetfs/layered.go:115
in loop -
BishopFox/sliver @v1.7.7
in loop - in loop
- in loop
-
bishopfox/sliver @v1.7.6
in loop - in loop
- in loop
-
coder/coder @v0.27.3
in loop - in loop
-
go-json-experiment/json @v0.0.0-20260820222146-c27c302e5fc3
in loop
top callers
The modules that reach for it
The modules that call ReadFile most in this snapshot.
- github.com/larksuite/cli197%
- github.com/containerd/containerd/v2187%
- github.com/aquasecurity/trivy177%
- github.com/owncast/owncast104%
- github.com/hajimehoshi/ebiten/v283%
siblings
More from io/fs
The other most-called functions in this package. See all →