bytes.Buffer.Len
standard libraryThe 394th most-called standard-library method by production calls. Called 4,766 times across 587 modules; 2,165 of those run outside tests and generated code.
- prod calls
- 2,165
- non-test, non-generated
- all calls
- 4,766
- total callsites
- modules
- 587
- distinct callers
- in loop
- 25%
- of prod calls
- in tests
- 49%
- 2,320 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 75 3%
- CockroachDB 59 3%
- Grafana 58 3%
- Dgraph 46 2%
- Go (golang.org/x) 31 1%
where it's called
Callsites in the wild
12 representative callsites of 4,766, 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-20260721220516-ab0596f228a0
in loop -
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
docker/docker @v28.5.2+incompatible
in loop -
encr.dev @v1.57.13
pkg/eerror/zerolog.go:73
in loop -
filippo.io/age @v1.3.1
internal/stream/stream.go:205
in loop - in loop
-
gitea.dev @v1.27.1
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/minio45710%
- github.com/elastic/go-elasticsearch/v82545%
- github.com/larksuite/cli1192%
- github.com/parquet-go/parquet-go1172%
- github.com/klauspost/compress1022%
siblings
More from bytes
The other most-called members in this package. See all →