Skip to content
callcount

fmt.Stringer.String

standard library

The 30th most-called standard-library method by production calls. Called 812 times across 121 modules; 704 of those run outside tests and generated code.

10% in production calls vs 2026-06-sample (640 → 704)

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

prod calls
704
non-test, non-generated
all calls
812
total callsites
modules
121
distinct callers
in loop
17%
of prod calls
in tests
10%
82 calls
resolved
9%
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 →

  • Concrete method9%A method on a value whose type is known exactly.
  • Interface method91%Called through an interface. The runtime target may differ.

who calls this

Notable callers

Production calls into Stringer.String 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 Stringer.String most in this snapshot.

  • k8s.io/apimachinery24630%
  • github.com/prometheus/prometheus16821%
  • github.com/hashicorp/consul9211%

siblings

More from fmt

The other most-called members in this package. See all →