strings.TrimSuffix
standard libraryThe 174th most-called standard-library function by production calls. Called 6,357 times across 667 modules; 5,626 of those run outside tests and generated code.
- prod calls
- 5,626
- non-test, non-generated
- all calls
- 6,357
- total callsites
- modules
- 667
- distinct callers
- in loop
- 26%
- of prod calls
- in tests
- 10%
- 637 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 329 6%
- Go (golang.org/x) 97 2%
- Gitea 85 2%
- Tailscale 85 2%
- Grafana 82 1%
where it's called
Callsites in the wild
12 representative callsites of 6,357, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
CCTV/age @v0.0.0-20260605191406-1e3d2860d46e
internal/generate.go:35
in loop - in loop
-
bubbles/v2 @v2.1.1
textarea/textarea.go:1410
in loop - in loop
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
dgraph-io/dgraph/v24 @v24.1.9
in loop - in loop
-
encr.dev @v1.57.13
cli/daemon/mcp/docs_tools.go:170
in loop -
entgo.io/ent @v0.14.6
entc/gen/graph.go:1100
in loop
top callers
The modules that reach for it
The modules that call TrimSuffix most in this snapshot.
- github.com/chromedp/cdproto2304%
- github.com/infiniflow/ragflow1472%
- github.com/esengine/DeepSeek-Reasonix1002%
- github.com/gastownhall/gastown982%
- github.com/steveyegge/gastown982%
siblings
More from strings
The other most-called functions in this package. See all →