bytes.HasPrefix
standard libraryThe 595th most-called standard-library function by production calls. Called 1,831 times across 289 modules; 1,271 of those run outside tests and generated code.
3% in production calls vs 2026-W37 (1,237 → 1,271)
- prod calls
- 1,271
- non-test, non-generated
- all calls
- 1,831
- total callsites
- modules
- 289
- distinct callers
- in loop
- 37%
- of prod calls
- in tests
- 16%
- 294 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 HasPrefix from notable Go projects. Open one on the map to see what else it hammers.
- CockroachDB 53 4%
- VictoriaMetrics 51 4%
- Dgraph 34 3%
- Go (golang.org/x) 33 3%
- Kubernetes 29 2%
where it's called
Callsites in the wild
12 representative callsites of 1,831, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
cilium/proxy @v0.0.0-20260921120314-283c3f1fedbb
in loop -
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
-
dgraph-io/badger @v1.6.2
in loop - in loop
-
encr.dev @v1.58.6
cli/cmd/encore/logs.go:89
in loop -
entgo.io/ent @v0.14.6
entc/gen/globalid.go:50
in loop -
filippo.io/age @v1.3.2
internal/format/format.go:212
in loop - in loop
-
gitea.dev @v1.27.3
modules/queue/lqinternal/lqinternal.go:35
in loop
top callers
The modules that reach for it
The modules that call HasPrefix most in this snapshot.
- github.com/elastic/go-elasticsearch/v826615%
- github.com/gabriel-vasile/mimetype1408%
- github.com/ethereum/go-ethereum674%
- github.com/cockroachdb/cockroach573%
- github.com/nats-io/nats-server/v2473%
siblings
More from bytes
The other most-called functions in this package. See all →