errors.Is
standard libraryThe 50th most-called standard-library function by production calls. Called 47,284 times across 850 modules; 22,356 of those run outside tests and generated code.
2% in production calls vs 2026-W48 (21,868 → 22,356)
- prod calls
- 22,356
- non-test, non-generated
- all calls
- 47,284
- total callsites
- modules
- 850
- distinct callers
- in loop
- 22%
- of prod calls
- in tests
- 46%
- 21,911 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.01× the estimated relative cost of fmt.Sprintf . Benchmarked at 10.04 ns/op × 22,356 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 Is from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 570 3%
- Cilium 555 2%
- Gitea 553 2%
- Grafana 409 2%
- MinIO 375 2%
where it's called
Callsites in the wild
12 representative callsites of 47,284, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
- in loop
-
go/protoyaml @v0.8.0
decode.go:770
in loop -
go/standard @v0.1.0
xpath/xfilepath/xfilepath.go:142
in loop -
caddyserver/certmagic @v0.25.6
in loop -
cdr.dev/slog @v1.6.1
internal/syncwriter/syncwriter.go:76
in loop -
log/v2 @v2.0.1
logfmt.go:26
in loop -
cilium/cilium @v1.20.5
in loop - in loop
-
go/compute/metadata @v0.10.0
metadata.go:912
in loop -
go/storage @v1.71.1
invoke.go:182
in loop -
miekg/dns @v0.6.152
cmd/atomdns/internal/generate/handler.go:29
in loop
top callers
The modules that reach for it
The modules that call Is most in this snapshot.
- github.com/elastic/go-elasticsearch/v81,8474%
- github.com/seaweedfs/seaweedfs1,4013%
- github.com/akamai/AkamaiOPEN-edgegrid-golang/v131,3833%
- github.com/esengine/DeepSeek-Reasonix1,2163%
- github.com/Tencent/WeKnora1,1742%
siblings
More from errors
The other most-called functions in this package. See all →