strings.NewReplacer
standard libraryThe 789th most-called standard-library function by production calls. Called 1,022 times across 310 modules; 865 of those run outside tests and generated code.
- prod calls
- 865
- non-test, non-generated
- all calls
- 1,022
- total callsites
- modules
- 310
- distinct callers
- in loop
- 6%
- of prod calls
- in tests
- 15%
- 156 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 →
- Package function100%A direct call to an exported package function, resolved by type.
who calls this
Notable callers
Production calls into NewReplacer from notable Go projects. Open one on the map to see what else it hammers.
- NATS 50 6%
- InfluxDB 34 4%
- Kubernetes 30 3%
- Grafana 20 2%
- Gitea 18 2%
where it's called
Callsites in the wild
12 representative callsites of 1,022, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
- in loop
- in loop
-
bwmarrin/discordgo @v0.29.0
in loop - in loop
- in loop
- in loop
-
google/pprof @v0.0.0-20260802141513-ef3492d7dac3
in loop - in loop
- in loop
- in loop
top callers
The modules that reach for it
The modules that call NewReplacer most in this snapshot.
- github.com/ollama/ollama687%
- github.com/nats-io/nats-server/v2505%
- github.com/influxdata/telegraf404%
- github.com/gohugoio/hugo343%
- github.com/larksuite/cli252%
siblings
More from strings
The other most-called functions in this package. See all →