strings.TrimSuffix
standard libraryThe 170th most-called standard-library function by production calls. Called 6,893 times across 678 modules; 6,017 of those run outside tests and generated code.
1% in production calls vs 2026-W39 (5,974 → 6,017)
- prod calls
- 6,017
- non-test, non-generated
- all calls
- 6,893
- total callsites
- modules
- 678
- distinct callers
- in loop
- 26%
- of prod calls
- in tests
- 11%
- 769 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%
- Grafana 85 1%
- Tailscale 85 1%
where it's called
Callsites in the wild
12 representative callsites of 6,893, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
CCTV/age @v0.0.0-20260925130909-50a8ecf2a220
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.117
cmd/atomdns/atom/server.go:398
in loop - in loop
- in loop
-
dgraph-io/dgraph/v24 @v24.1.9
in loop - in loop
top callers
The modules that reach for it
The modules that call TrimSuffix most in this snapshot.
- github.com/chromedp/cdproto2313%
- github.com/infiniflow/ragflow1953%
- github.com/esengine/DeepSeek-Reasonix1712%
- github.com/seaweedfs/seaweedfs1062%
- github.com/gastownhall/gastown981%
siblings
More from strings
The other most-called functions in this package. See all →