reflect.Value.SetString
standard libraryThe 1743rd most-called standard-library method by production calls. Called 389 times across 195 modules; 356 of those run outside tests and generated code.
1% in production calls vs 2026-W37 (359 → 356)
- prod calls
- 356
- non-test, non-generated
- all calls
- 389
- total callsites
- modules
- 195
- distinct callers
- in loop
- 30%
- of prod calls
- in tests
- 8%
- 33 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 method97%A method on a value whose type is known exactly.
- Embedded method3%Reached through an embedded type.
who calls this
Notable callers
Production calls into Value.SetString from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 19 5%
- Grafana 7 2%
- Go (golang.org/x) 5 1%
- Argo 3 <1%
- Docker 3 <1%
where it's called
Callsites in the wild
12 representative callsites of 389, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop
-
dgraph-io/badger/v4 @v4.9.6
in loop -
AdamKorcz/go-118-fuzz-build @v0.0.0-20250520111509-a70c2aa677fa
in loop -
BurntSushi/toml @v1.6.0
in loop - in loop
- in loop
- in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call Value.SetString most in this snapshot.
- github.com/go-kratos/kratos92%
- github.com/alecthomas/kong82%
- github.com/beego/beego/v282%
- github.com/go-viper/mapstructure/v272%
- github.com/grafana/dskit72%
siblings
More from reflect
The other most-called members in this package. See all →