Skip to content
callcount

tailscale.com/util/set.Set.Add

third-party

The 5162nd most-called third-party method by production calls. Called 138 times across 1 modules; 121 of those run outside tests and generated code.

6% in production calls vs 2026-W48 (114 → 121)

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

prod calls
121
non-test, non-generated
all calls
138
total callsites
modules
1
distinct callers
in loop
74%
of prod calls
in tests
12%
17 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 138, prioritizing in-loop and non-test usage. We link to source, never display it.

Set.Add · 12 of 138 callsites
  • tailscale.com @v1.106.1

    cmd/vet/jsontags/report.go:42

    in loop
  • tailscale.com @v1.106.1

    util/set/set.go:57

    in loop
  • tailscale.com @v1.106.1

    feature/featuretags/featuretags.go:63

    in loop
  • tailscale.com @v1.106.1

    util/set/set.go:64

    in loop
  • tailscale.com @v1.106.1

    cmd/omitsize/omitsize.go:67

    in loop
  • tailscale.com @v1.106.1

    util/set/set.go:71

    in loop
  • tailscale.com @v1.106.1

    util/set/set.go:78

    in loop
  • tailscale.com @v1.106.1

    wgengine/netlog/record.go:81

    in loop
  • tailscale.com @v1.106.1

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

    in loop
  • tailscale.com @v1.106.1

    cmd/featuretags/featuretags.go:84

    in loop
  • tailscale.com @v1.106.1

    ssh/tailssh/c2n.go:86

    in loop
  • tailscale.com @v1.106.1

    net/ipset/ipset.go:96

    in loop

top callers

The modules that reach for it

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

  • tailscale.com138100%

siblings

More from tailscale.com/util/set

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