reflect.Type.NumField
standard libraryThe 670th most-called standard-library method by production calls. Called 1,369 times across 378 modules; 1,060 of those run outside tests and generated code.
0% in production calls vs 2026-W37 (1,059 → 1,060)
- prod calls
- 1,060
- non-test, non-generated
- all calls
- 1,369
- total callsites
- modules
- 378
- distinct callers
- in loop
- 8%
- of prod calls
- in tests
- 22%
- 308 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 49 5%
- Uber Go 30 3%
- Grafana 15 1%
- Go (golang.org/x) 11 1%
- HashiCorp 10 <1%
where it's called
Callsites in the wild
12 representative callsites of 1,369, 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.25.0
fs/assets/credits_generated/github.com/hashicorp/hcl/decoder.go:615 ↗
in loop -
abema/go-mp4 @v1.7.3
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-go322%
- github.com/steveyegge/beads232%
- go.uber.org/fx232%
siblings
More from reflect
The other most-called members in this package. See all →