strings.Compare
standard libraryThe 586th most-called standard-library function by production calls. Called 1,755 times across 297 modules; 1,287 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (1,275 → 1,287)
- prod calls
- 1,287
- non-test, non-generated
- all calls
- 1,755
- total callsites
- modules
- 297
- distinct callers
- in loop
- 15%
- of prod calls
- in tests
- 26%
- 450 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 Compare from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 79 6%
- Istio 60 5%
- Grafana 52 4%
- Cilium 31 2%
- Go (golang.org/x) 27 2%
where it's called
Callsites in the wild
12 representative callsites of 1,755, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
miekg/dns @v0.6.114
zcompare.go:531
in loop - in loop
-
encr.dev @v1.58.6
pkg/encorebuild/gentypedefs/gentypedefs.go:164
in loop - in loop
-
GoogleCloudPlatform/terraformer @v0.0.0-20260316201050-1807affdde9e
in loop - in loop
- in loop
-
IBM-Cloud/bluemix-go @v0.0.0-20260916083538-6e91b9f8f36f
in loop -
OpenDiablo2/OpenDiablo2 @v0.0.0-20211021131836-7f92c571bf04
in loop
top callers
The modules that reach for it
The modules that call Compare most in this snapshot.
- github.com/bytebase/bytebase664%
- github.com/gogf/gf/v2593%
- github.com/gogf/gf563%
- github.com/kubernetes/kubernetes483%
- github.com/istio/istio443%
siblings
More from strings
The other most-called functions in this package. See all →