Skip to content
callcount

net/http.Server.ListenAndServe

standard library

The 2088th most-called standard-library method by production calls. Called 323 times across 189 modules; 296 of those run outside tests and generated code.

No change in production calls since 2026-W37.

All of net/http → Docs on pkg.go.dev ↗

prod calls
296
non-test, non-generated
all calls
323
total callsites
modules
189
distinct callers
in loop
2%
of prod calls
in tests
8%
27 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 →

  • Concrete method96%A method on a value whose type is known exactly.
  • Embedded method3%Reached through an embedded type.
  • Method value<1%A method captured as a value, then called.

who calls this

Notable callers

Production calls into Server.ListenAndServe 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 323, prioritizing in-loop and non-test usage. We link to source, never display it.

top callers

The modules that reach for it

The modules that call Server.ListenAndServe most in this snapshot.

  • github.com/netbirdio/netbird113%
  • github.com/chenhg5/cc-connect72%
  • github.com/cilium/cilium72%
  • github.com/txthinking/brook62%
  • github.com/codenotary/immudb52%

siblings

More from net/http

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