Skip to content
callcount

io.Closer.Close

standard library

The 51st most-called standard-library method by production calls. Called 56,647 times across 975 modules; 19,146 of those run outside tests and generated code.

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

prod calls
19,146
non-test, non-generated
all calls
56,647
total callsites
modules
975
distinct callers
in loop
8%
of prod calls
in tests
16%
8,955 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 →

  • Embedded method<1%Reached through an embedded type.
  • Interface method100%Called through an interface. The runtime target may differ.
  • Method value<1%A method captured as a value, then called.

who calls this

Notable callers

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

where it's called

Callsites in the wild

12 representative callsites of 56,647, prioritizing in-loop and non-test usage. We link to source, never display it.

Closer.Close · 12 of 56,647 callsites

top callers

The modules that reach for it

The modules that call Closer.Close most in this snapshot.

  • google.golang.org/api26,57547%
  • github.com/elastic/go-elasticsearch/v88762%
  • github.com/labd/commercetools-go-sdk8471%
  • github.com/okta/okta-sdk-golang/v55901%
  • github.com/dapr/dapr5851%

siblings

More from io

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