Skip to content
callcount

sync.WaitGroup.Add

standard library

The 25th most-called standard-library method by production calls. Called 1,180 times across 61 modules; 869 of those run outside tests and generated code.

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

prod calls
869
non-test, non-generated
all calls
1,180
total callsites
modules
61
distinct callers
in loop
26%
of prod calls
in tests
20%
231 calls
resolved
97%
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 method80%A method on a value whose type is known exactly.
  • Embedded method17%Reached through an embedded type.
  • Unresolved3%Receiver typed by a dependency outside the crawl.

who calls this

Notable callers

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

where it's called

Callsites in the wild

6 representative callsites of 1,180, prioritizing in-loop and non-test usage. We link to source, never display it.

WaitGroup.Add · 6 of 1,180 callsites

top callers

The modules that reach for it

The modules that call WaitGroup.Add most in this snapshot.

  • k8s.io/apimachinery34229%
  • github.com/spf13/cobra16414%
  • github.com/gorilla/mux787%

siblings

More from sync

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