bytes.Buffer.Len
standard libraryThe 406th most-called standard-library method by production calls. Called 5,129 times across 589 modules; 2,214 of those run outside tests and generated code.
0% in production calls vs 2026-W39 (2,212 → 2,214)
- prod calls
- 2,214
- non-test, non-generated
- all calls
- 5,129
- total callsites
- modules
- 589
- distinct callers
- in loop
- 24%
- of prod calls
- in tests
- 51%
- 2,639 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.Len from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 73 3%
- CockroachDB 59 3%
- Grafana 58 3%
- Dgraph 46 2%
- Go (golang.org/x) 33 1%
where it's called
Callsites in the wild
12 representative callsites of 5,129, prioritizing in-loop and non-test usage. We link to source, never display it.
-
go/standard @v0.1.0
xstrings/xstrings.go:78
in loop - in loop
-
cilium/proxy @v0.0.0-20260921120314-283c3f1fedbb
in loop -
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
moby/moby @v28.5.2+incompatible
in loop -
encr.dev @v1.58.6
pkg/eerror/zerolog.go:73
in loop -
filippo.io/age @v1.3.2
internal/stream/stream.go:209
in loop - in loop
-
gitea.dev @v1.27.3
services/gitdiff/gitdiff_excerpt.go:38
in loop -
Binject/debug @v0.0.0-20260128230015-4e22595eaac6
in loop -
CodisLabs/codis @v0.0.0-20181104082235-de1ad026e329
in loop
top callers
The modules that reach for it
The modules that call Buffer.Len most in this snapshot.
- github.com/minio/minio4579%
- github.com/elastic/go-elasticsearch/v82545%
- github.com/larksuite/cli2154%
- github.com/parquet-go/parquet-go1493%
- github.com/klauspost/compress1052%
siblings
More from bytes
The other most-called members in this package. See all →