strings.ContainsRune
standard libraryThe 872nd most-called standard-library function by production calls. Called 1,053 times across 316 modules; 834 of those run outside tests and generated code.
3% in production calls vs 2026-W48 (811 → 834)
- prod calls
- 834
- non-test, non-generated
- all calls
- 1,053
- total callsites
- modules
- 316
- distinct callers
- in loop
- 39%
- of prod calls
- in tests
- 20%
- 209 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 ContainsRune from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 26 3%
- Grafana 16 2%
- Docker 10 1%
- Go (golang.org/x) 10 1%
- Prometheus 10 1%
where it's called
Callsites in the wild
12 representative callsites of 1,053, prioritizing in-loop and non-test usage. We link to source, never display it.
-
go/app @v0.3.0
env_container.go:41
in loop - in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
-
dgraph-io/dgraph @v1.2.8
in loop -
docker/distribution @v2.8.3+incompatible
in loop -
encr.dev @v1.58.10
pkg/emulators/storage/gcsemu/glob.go:195
in loop -
filippo.io/age @v1.3.2
plugin/encode.go:78
in loop - in loop
-
Azure/azure-sdk-for-go/sdk/azcore @v1.24.0
streaming/sse.go:421
in loop - in loop
top callers
The modules that reach for it
The modules that call ContainsRune most in this snapshot.
- github.com/hashicorp/consul10810%
- github.com/infiniflow/ragflow384%
- github.com/Tencent/WeKnora252%
- github.com/esengine/DeepSeek-Reasonix252%
- github.com/terrastruct/d2232%
siblings
More from strings
The other most-called functions in this package. See all →