slices.ContainsFunc
standard libraryThe 651st most-called standard-library function by production calls. Called 1,680 times across 298 modules; 1,218 of those run outside tests and generated code.
10% in production calls vs 2026-W48 (1,107 → 1,218)
- prod calls
- 1,218
- non-test, non-generated
- all calls
- 1,680
- total callsites
- modules
- 298
- distinct callers
- in loop
- 29%
- of prod calls
- in tests
- 23%
- 383 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 ContainsFunc from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 95 8%
- Cilium 41 3%
- Tailscale 29 2%
- Go (golang.org/x) 19 2%
- Traefik 18 1%
where it's called
Callsites in the wild
12 representative callsites of 1,680, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
moby/buildkit @v0.35.1
in loop -
encr.dev @v1.58.10
cli/internal/platform/orgs.go:57
in loop - in loop
-
gitea.dev @v1.27.3
services/actions/commit_status.go:238
in loop -
89luca89/distrobox @v0.0.0-20261127072711-dc7fcd60af56
in loop - in loop
- in loop
- in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call ContainsFunc most in this snapshot.
- github.com/kubernetes/kubernetes905%
- github.com/gruntwork-io/terragrunt885%
- github.com/terrastruct/d2744%
- github.com/open-policy-agent/opa664%
- github.com/weaviate/weaviate573%
siblings
More from slices
The other most-called functions in this package. See all →