Skip to content
callcount

tailscale.com/util/set.Set.Contains

third-party

The 6590th most-called third-party method by production calls. Called 135 times across 1 modules; 95 of those run outside tests and generated code.

25% in production calls vs 2026-W48 (76 → 95)

All of tailscale.com/util/set → Docs on pkg.go.dev ↗

prod calls
95
non-test, non-generated
all calls
135
total callsites
modules
1
distinct callers
in loop
40%
of prod calls
in tests
30%
40 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 method100%A method on a value whose type is known exactly.

where it's called

Callsites in the wild

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

Set.Contains · 12 of 135 callsites
  • tailscale.com @v1.106.1

    feature/taildrop/retrieve.go:50

    in loop
  • tailscale.com @v1.106.1

    doctor/ethtool/ethtool_linux.go:73

    in loop
  • tailscale.com @v1.106.1

    doctor/ethtool/ethtool_linux.go:76

    in loop
  • tailscale.com @v1.106.1

    util/syspolicy/internal/metrics/test_handler.go:85

    in loop
  • tailscale.com @v1.106.1

    cmd/featuretags/featuretags.go:88

    in loop
  • tailscale.com @v1.106.1

    feature/featuretags/featuretags.go:93

    in loop
  • tailscale.com @v1.106.1

    cmd/featuretags/featuretags.go:94

    in loop
  • tailscale.com @v1.106.1

    ipn/ipnlocal/netmapcache/netmapcache.go:111

    in loop
  • tailscale.com @v1.106.1

    cmd/omitsize/omitsize.go:141

    in loop
  • tailscale.com @v1.106.1

    cmd/k8s-operator/egress-pod-readiness.go:146

    in loop
  • tailscale.com @v1.106.1

    cmd/k8s-operator/egress-pod-readiness.go:146

    in loop
  • tailscale.com @v1.106.1

    k8s-operator/reconciler/staticendpoints/staticendpoints.go:171

    in loop

top callers

The modules that reach for it

The modules that call Set.Contains most in this snapshot.

  • tailscale.com135100%

siblings

More from tailscale.com/util/set

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