Skip to content
callcount

sigs.k8s.io/structured-merge-diff/v6/fieldpath.NewSet

third-party

The 4014th most-called third-party function by production calls. Called 212 times across 9 modules; 149 of those run outside tests and generated code.

No change in production calls since 2026-W37.

All of sigs.k8s.io/structured-merge-diff/v6/fieldpath → Docs on pkg.go.dev ↗

prod calls
149
non-test, non-generated
all calls
212
total callsites
modules
9
distinct callers
in loop
3%
of prod calls
in tests
30%
63 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 function21%A direct call to an exported package function, resolved by type.
  • Package function (by syntax)79%A package function in a module outside the crawl, keyed by import path.

who calls this

Notable callers

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

NewSet · 12 of 212 callsites
  • k8s.io/apimachinery @v0.37.0

    pkg/util/managedfields/scalehandler.go:79

    in loop
  • k8s.io/apimachinery @v0.37.0

    pkg/util/managedfields/scalehandler.go:129

    in loop
  • k8s.io/apimachinery @v0.37.0

    pkg/util/managedfields/scalehandler.go:153

    in loop
  • structured-merge-diff/v6 @v6.4.2

    merge/update.go:289

    in loop
  • structured-merge-diff/v6 @v6.4.2

    fieldpath/fromvalue.go:25

  • k8s.io/apimachinery @v0.37.0

    pkg/util/managedfields/internal/fields.go:28

  • k8s.io/apimachinery @v0.37.0

    pkg/util/managedfields/internal/stripmeta.go:39

  • k8s.io/kubernetes @v1.37.0

    pkg/registry/flowcontrol/flowschema/strategy.go:51

  • k8s.io/kubernetes @v1.37.0

    pkg/registry/apiserverinternal/storageversion/strategy.go:51

  • k8s.io/kubernetes @v1.37.0

    pkg/registry/core/resourcequota/strategy.go:52

  • k8s.io/kubernetes @v1.37.0

    pkg/registry/flowcontrol/prioritylevelconfiguration/strategy.go:53

  • k8s.io/kubernetes @v1.37.0

    pkg/registry/storage/csinode/strategy.go:53

top callers

The modules that reach for it

The modules that call NewSet most in this snapshot.

  • k8s.io/kubernetes11956%
  • sigs.k8s.io/structured-merge-diff/v64521%
  • k8s.io/apimachinery2110%
  • github.com/kubernetes/client-go84%
  • k8s.io/client-go84%

siblings

More from sigs.k8s.io/structured-merge-diff/v6/fieldpath

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