strings.Count
standard libraryThe 664th most-called standard-library function by production calls. Called 1,958 times across 396 modules; 1,061 of those run outside tests and generated code.
- prod calls
- 1,061
- non-test, non-generated
- all calls
- 1,958
- total callsites
- modules
- 396
- distinct callers
- in loop
- 21%
- of prod calls
- in tests
- 46%
- 897 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 Count from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 44 4%
- Hugo 29 3%
- Docker 24 2%
- Istio 24 2%
- Go (golang.org/x) 17 2%
where it's called
Callsites in the wild
12 representative callsites of 1,958, prioritizing in-loop and non-test usage. We link to source, never display it.
-
lipgloss/v2 @v2.0.5
table/resizing.go:422
in loop - in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
docker/docker @v28.5.2+incompatible
in loop -
gitea.dev @v1.27.1
modules/packages/helm/metadata.go:91
in loop - in loop
-
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop - in loop
- in loop
- in loop
-
antonmedv/fx @v0.0.0-20260728113644-63eb255ad014
in loop
top callers
The modules that reach for it
The modules that call Count most in this snapshot.
- github.com/esengine/DeepSeek-Reasonix864%
- github.com/docker/docker543%
- github.com/moby/moby543%
- github.com/larksuite/cli452%
- github.com/gruntwork-io/terragrunt422%
siblings
More from strings
The other most-called functions in this package. See all →