bytes.Buffer.Truncate
standard libraryThe 3452nd most-called standard-library method by production calls. Called 235 times across 106 modules; 177 of those run outside tests and generated code.
1% in production calls vs 2026-W39 (176 → 177)
- prod calls
- 177
- non-test, non-generated
- all calls
- 235
- total callsites
- modules
- 106
- distinct callers
- in loop
- 27%
- of prod calls
- in tests
- 25%
- 58 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 →
- Concrete method98%A method on a value whose type is known exactly.
- Embedded method2%Reached through an embedded type.
who calls this
Notable callers
Production calls into Buffer.Truncate from notable Go projects. Open one on the map to see what else it hammers.
- CockroachDB 9 5%
- Kubernetes 8 5%
- Dgraph 6 3%
- Go (golang.org/x) 5 3%
- InfluxDB 5 3%
where it's called
Callsites in the wild
12 representative callsites of 235, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
-
cloudreve/cloudreve @v0.0.0-20200909065614-40414fe6ae9f
in loop -
dop251/goja @v0.0.0-20260926152631-39ec2650adc9
in loop - in loop
- in loop
-
go-ldap/ldap/v3 @v3.4.14
in loop -
google/gvisor @v0.0.0-20260927234935-6485c3fbdfe2
in loop - in loop
- in loop
-
kballard/go-shellquote @v0.0.0-20180428030007-95032a82bc51
in loop
top callers
The modules that reach for it
The modules that call Buffer.Truncate most in this snapshot.
- github.com/russross/blackfriday146%
- github.com/lestrrat-go/jwx125%
- github.com/cockroachdb/cockroach94%
- github.com/couchbase/moss63%
- github.com/temporalio/temporal63%
siblings
More from bytes
The other most-called members in this package. See all →