net.Conn.Close
standard libraryThe 290th most-called standard-library method by production calls. Called 8,740 times across 438 modules; 3,306 of those run outside tests and generated code.
1% in production calls vs 2026-W39 (3,263 → 3,306)
- prod calls
- 3,306
- non-test, non-generated
- all calls
- 8,740
- total callsites
- modules
- 438
- distinct callers
- in loop
- 16%
- of prod calls
- in tests
- 62%
- 5,432 calls
- resolved
- 2%
- 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 method2%Reached through an embedded type.
- Interface method98%Called through an interface. The runtime target may differ.
who calls this
Notable callers
Production calls into Conn.Close from notable Go projects. Open one on the map to see what else it hammers.
- Kubernetes 145 4%
- Tailscale 99 3%
- Nomad 67 2%
- InfluxDB 61 2%
- Consul 53 2%
where it's called
Callsites in the wild
12 representative callsites of 8,740, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
-
containerd/ttrpc @v1.2.10
in loop - in loop
- in loop
-
etcd/client/pkg/v3 @v3.7.2
transport/tls.go:46
in loop -
AlexxIT/go2rtc @v1.9.14
in loop - in loop
-
DNSCrypt/dnscrypt-proxy @v0.0.0-20260907210843-47ce24df6e86
in loop - in loop
-
GoesToEleven/GolangTraining @v0.0.0-20230828175525-f9a4f6cf3939
in loop
top callers
The modules that reach for it
The modules that call Conn.Close most in this snapshot.
- github.com/nats-io/nats-server/v286910%
- tailscale.com2723%
- github.com/tailscale/tailscale2483%
- github.com/BishopFox/sliver2333%
- github.com/hashicorp/nomad2022%
siblings
More from net
The other most-called members in this package. See all →