strings.CutPrefix
standard libraryThe 704th most-called standard-library function by production calls. Called 1,086 times across 186 modules; 974 of those run outside tests and generated code.
- prod calls
- 974
- non-test, non-generated
- all calls
- 1,086
- total callsites
- modules
- 186
- distinct callers
- in loop
- 43%
- of prod calls
- in tests
- 10%
- 112 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 CutPrefix from notable Go projects. Open one on the map to see what else it hammers.
- Tailscale 74 8%
- Docker 39 4%
- Istio 32 3%
- Gitea 24 2%
- Kubernetes 21 2%
where it's called
Callsites in the wild
12 representative callsites of 1,086, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
go/storage @v1.64.0
transfermanager/downloader.go:189
in loop - in loop
- in loop
- in loop
-
encr.dev @v1.57.13
v2/codegen/internal/codegentest/codegentest.go:128
in loop - in loop
-
gitea.dev @v1.27.1
modules/markup/renderer.go:103
in loop -
AlexxIT/go2rtc @v1.9.14
in loop - in loop
-
DNSCrypt/dnscrypt-proxy @v0.0.0-20260801091651-c3ba78fac8a3
in loop
top callers
The modules that reach for it
The modules that call CutPrefix most in this snapshot.
- github.com/sagernet/tailscale838%
- github.com/tailscale/tailscale838%
- tailscale.com838%
- github.com/microsoft/typescript-go394%
- github.com/dagger/dagger363%
siblings
More from strings
The other most-called functions in this package. See all →