strings.LastIndex
standard libraryThe 507th most-called standard-library function by production calls. Called 1,864 times across 546 modules; 1,562 of those run outside tests and generated code.
- prod calls
- 1,562
- non-test, non-generated
- all calls
- 1,864
- total callsites
- modules
- 546
- distinct callers
- in loop
- 14%
- of prod calls
- in tests
- 10%
- 184 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 LastIndex from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 82 5%
- Go (golang.org/x) 38 2%
- Istio 20 1%
- Docker 19 1%
- InfluxDB 18 1%
where it's called
Callsites in the wild
12 representative callsites of 1,864, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
-
encr.dev @v1.57.13
pkg/errinsrc/stack.go:97
in loop - in loop
-
gitea.dev @v1.27.1
services/migrations/github.go:644
in loop - in loop
- in loop
- in loop
-
IceWhaleTech/CasaOS @v0.4.15
in loop - in loop
top callers
The modules that reach for it
The modules that call LastIndex most in this snapshot.
- github.com/seaweedfs/seaweedfs613%
- github.com/aws/aws-sdk-go-v2/service/route53352%
- github.com/rclone/rclone292%
- github.com/esengine/DeepSeek-Reasonix251%
- github.com/kubernetes/kubernetes251%
siblings
More from strings
The other most-called functions in this package. See all →