reflect.Value.Cap
standard libraryThe 4292nd most-called standard-library method by production calls. Called 168 times across 83 modules; 139 of those run outside tests and generated code.
- prod calls
- 139
- non-test, non-generated
- all calls
- 168
- total callsites
- modules
- 83
- distinct callers
- in loop
- 19%
- of prod calls
- in tests
- 17%
- 29 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 Value.Cap from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 8 6%
- Argo 2 1%
- Go (golang.org/x) 2 1%
- Uber Go 2 1%
- ClickHouse 1 <1%
where it's called
Callsites in the wild
12 representative callsites of 168, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
ethereum/go-ethereum @v1.17.5
in loop - in loop
- in loop
- in loop
-
go-json-experiment/json @v0.0.0-20260623181947-01eb4420fa68
in loop - in loop
-
gocql/gocql @v1.7.0
in loop - in loop
- in loop
-
tencentcloud/tencentcloud-sdk-go/tencentcloud/common @v1.3.152
json/decode.go:557
in loop -
go.mongodb.org/mongo-driver @v1.17.9
mongo/cursor.go:361
in loop
top callers
The modules that reach for it
The modules that call Value.Cap most in this snapshot.
- github.com/tinygo-org/tinygo159%
- github.com/aws/aws-sdk-go127%
- github.com/alibabacloud-go/tea53%
- github.com/kubernetes/kubernetes53%
- github.com/aws/smithy-go42%
siblings
More from reflect
The other most-called members in this package. See all →