Skip to content
callcount

error.Error

standard library

The 24th most-called standard-library method by production calls. Called 1,010 times across 152 modules; 902 of those run outside tests and generated code.

11% in production calls vs 2026-06-sample (812 → 902)

All of error → Docs on pkg.go.dev ↗

prod calls
902
non-test, non-generated
all calls
1,010
total callsites
modules
152
distinct callers
in loop
9%
of prod calls
in tests
8%
84 calls
resolved
0%
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 →

  • Interface method88%Called through an interface. The runtime target may differ.
  • Unresolved12%Receiver typed by a dependency outside the crawl.

who calls this

Notable callers

Production calls into Error from notable Go projects. Open one on the map to see what else it hammers.

top callers

The modules that reach for it

The modules that call Error most in this snapshot.

  • google.golang.org/grpc28829%
  • k8s.io/apimachinery20520%
  • github.com/hashicorp/consul14114%
  • github.com/prometheus/prometheus9610%