tailscale.com/util/syspolicy/setting.NewDefinition
third-partyThe 4457th most-called third-party function by production calls. Called 380 times across 3 modules; 133 of those run outside tests and generated code.
All of tailscale.com/util/syspolicy/setting → Docs on pkg.go.dev ↗
- prod calls
- 133
- non-test, non-generated
- all calls
- 380
- total callsites
- modules
- 3
- distinct callers
- in loop
- 0%
- of prod calls
- in tests
- 65%
- 247 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 →
- Package function42%A direct call to an exported package function, resolved by type.
- Package function (by syntax)58%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into NewDefinition from notable Go projects. Open one on the map to see what else it hammers.
- Tailscale 44 33%
where it's called
Callsites in the wild
12 representative callsites of 380, prioritizing in-loop and non-test usage. We link to source, never display it.
- in loop test
- in loop test
-
tailscale.com @v1.102.2
util/syspolicy/syspolicy_test.go:160
in loop test - in loop test
- in loop test
-
tailscale.com @v1.102.2
util/syspolicy/rsop/resultant_policy_test.go:362
in loop test -
-
-
tailscale.com @v1.102.2
util/syspolicy/policy_keys.go:18
-
-
-
tailscale.com @v1.102.2
util/syspolicy/policy_keys.go:19
top callers
The modules that reach for it
The modules that call NewDefinition most in this snapshot.
- tailscale.com16042%
- github.com/sagernet/tailscale11029%
- github.com/tailscale/tailscale11029%