strings.TrimSuffix
standard libraryThe 167th most-called standard-library function by production calls. Called 6,846 times across 675 modules; 5,974 of those run outside tests and generated code.
2% in production calls vs 2026-W37 (5,851 → 5,974)
- prod calls
- 5,974
- non-test, non-generated
- all calls
- 6,846
- total callsites
- modules
- 675
- distinct callers
- in loop
- 26%
- of prod calls
- in tests
- 11%
- 765 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 TrimSuffix from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 331 6%
- Go (golang.org/x) 97 2%
- Gitea 85 1%
- Tailscale 85 1%
- Grafana 83 1%
where it's called
Callsites in the wild
12 representative callsites of 6,846, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
CCTV/age @v0.0.0-20260829155415-4448f2097b2d
internal/generate.go:35
in loop - in loop
-
bubbles/v2 @v2.2.1
textarea/textarea.go:1541
in loop - in loop
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
miekg/dns @v0.6.114
cmd/atomdns/atom/server.go:398
in loop - in loop
-
dgraph-io/dgraph/v24 @v24.1.9
in loop - in loop
-
encr.dev @v1.58.6
cli/daemon/mcp/docs_tools.go:204
in loop
top callers
The modules that reach for it
The modules that call TrimSuffix most in this snapshot.
- github.com/chromedp/cdproto2293%
- github.com/infiniflow/ragflow1953%
- github.com/esengine/DeepSeek-Reasonix1602%
- github.com/seaweedfs/seaweedfs1052%
- github.com/gastownhall/gastown981%
siblings
More from strings
The other most-called functions in this package. See all →