reflect.Type.NumField
standard libraryThe 678th most-called standard-library method by production calls. Called 1,276 times across 370 modules; 1,033 of those run outside tests and generated code.
- prod calls
- 1,033
- non-test, non-generated
- all calls
- 1,276
- total callsites
- modules
- 370
- distinct callers
- in loop
- 8%
- of prod calls
- in tests
- 19%
- 243 calls
- resolved
- 0%
- 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 →
- Embedded method<1%Reached through an embedded type.
- Interface method100%Called through an interface. The runtime target may differ.
who calls this
Notable callers
Production calls into Type.NumField from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 50 5%
- Uber Go 30 3%
- Grafana 12 1%
- Go (golang.org/x) 10 <1%
- HashiCorp 10 <1%
where it's called
Callsites in the wild
12 representative callsites of 1,276, prioritizing in-loop and non-test usage. We link to source, never display it.
-
entgo.io/ent @v0.14.6
dialect/sql/scan.go:209
in loop -
BurntSushi/toml @v1.6.0
in loop - in loop
-
GoogleContainerTools/skaffold/v2 @v2.24.0
fs/assets/credits_generated/github.com/hashicorp/hcl/decoder.go:615 ↗
in loop -
abema/go-mp4 @v1.7.1
in loop -
aliyun/alibaba-cloud-sdk-go @v1.63.107
in loop - in loop
- in loop
- in loop
- in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call Type.NumField most in this snapshot.
- github.com/okta/okta-sdk-golang/v5907%
- github.com/kubernetes/kubernetes554%
- github.com/anthropics/anthropic-sdk-go252%
- go.uber.org/fx232%
- github.com/pinchtab/pinchtab191%
siblings
More from reflect
The other most-called members in this package. See all →