strings.TrimSuffix
standard libraryThe 176th most-called standard-library function by production calls. Called 7,131 times across 689 modules; 5,999 of those run outside tests and generated code.
1% in production calls vs 2026-W48 (5,943 → 5,999)
- prod calls
- 5,999
- non-test, non-generated
- all calls
- 7,131
- total callsites
- modules
- 689
- distinct callers
- in loop
- 27%
- of prod calls
- in tests
- 14%
- 1,025 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 325 5%
- Go (golang.org/x) 99 2%
- Tailscale 96 2%
- Grafana 88 1%
- Gitea 85 1%
where it's called
Callsites in the wild
12 representative callsites of 7,131, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
CCTV/age @v0.0.0-20261101064804-b88c4b206254
internal/generate.go:35
in loop - in loop
-
bubbles/v2 @v2.2.2
textarea/textarea.go:1587
in loop -
charm.land/fantasy @v0.48.3
providers/internal/prompttest/prompttest.go:114
in loop - in loop
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop -
miekg/dns @v0.6.152
cmd/atomdns/atom/server.go:434
in loop - in loop
- in loop
-
dgraph-io/dgraph/v24 @v24.1.9
in loop
top callers
The modules that reach for it
The modules that call TrimSuffix most in this snapshot.
- github.com/seaweedfs/seaweedfs1742%
- github.com/esengine/DeepSeek-Reasonix1732%
- github.com/tailscale/tailscale1142%
- tailscale.com1142%
- github.com/Tencent/WeKnora1082%
siblings
More from strings
The other most-called functions in this package. See all →