strings.ToLower
standard libraryThe 56th most-called standard-library function by production calls. Called 20,356 times across 969 modules; 18,039 of those run outside tests and generated code.
- prod calls
- 18,039
- non-test, non-generated
- all calls
- 20,356
- total callsites
- modules
- 969
- distinct callers
- in loop
- 28%
- of prod calls
- in tests
- 9%
- 1,865 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.
estimate
Estimated relative cost
Roughly 0.04× the estimated relative cost of fmt.Sprintf . Benchmarked at 59.19 ns/op × 18,039 production calls, normalized so fmt.Sprintf = 1.0.
This is not dollars and not a verdict. Per-op time depends heavily on inputs (argument sizes, contention, patterns), the benchmark ran on a single machine (darwin/arm64 (Apple Silicon), go1.26.0), and static call counts are not runtime frequency. How this is estimated →
who calls this
Notable callers
Production calls into ToLower from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 746 4%
- Gitea 318 2%
- Docker 317 2%
- HashiCorp 222 1%
- Hugo 183 1%
where it's called
Callsites in the wild
12 representative callsites of 20,356, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
go/spdx @v0.2.0
internal/cmd/gen-spdx-go/main.go:136
in loop -
caddyserver/caddy @v1.0.5
in loop -
bubbles/v2 @v2.1.1
textinput/textinput.go:869
in loop -
charm.land/catwalk @v0.51.13
cmd/nebius/main.go:127
in loop -
charm.land/fantasy @v0.40.0
providers/openai/error.go:117
in loop -
x/vcr @v0.1.1
hooks.go:22
in loop - in loop
- in loop
-
go/logging @v1.19.0
logging.go:480
in loop -
go/storage @v1.64.0
storage.go:618
in loop
top callers
The modules that reach for it
The modules that call ToLower most in this snapshot.
- github.com/esengine/DeepSeek-Reasonix5943%
- github.com/bytebase/bytebase3962%
- github.com/larksuite/cli3812%
- github.com/infiniflow/ragflow3552%
- gitea.dev3482%
siblings
More from strings
The other most-called functions in this package. See all →