bytes.Buffer.Truncate
standard libraryThe 3392nd most-called standard-library method by production calls. Called 234 times across 105 modules; 176 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (177 → 176)
- prod calls
- 176
- non-test, non-generated
- all calls
- 234
- total callsites
- modules
- 105
- 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 234, 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-20260917113740-793a2a65c13b
in loop - in loop
- in loop
-
go-ldap/ldap/v3 @v3.4.14
in loop -
google/gvisor @v0.0.0-20260919054224-26f3455a4cb9
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 →