Skip to content
callcount

github.com/spf13/cobra.Command.Flags

third-party

The 31st most-called third-party method by production calls. Called 760 times across 38 modules; 652 of those run outside tests and generated code.

All of github.com/spf13/cobra → Docs on pkg.go.dev ↗

prod calls
652
non-test, non-generated
all calls
760
total callsites
modules
38
distinct callers
in loop
13%
of prod calls
in tests
12%
88 calls
resolved
86%
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 method24%A method on a value whose type is known exactly.
  • Cross-package method62%A method whose receiver type is defined in another crawled package.
  • Unresolved14%Receiver typed by a dependency outside the crawl.

where it's called

Callsites in the wild

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

top callers

The modules that reach for it

The modules that call Command.Flags most in this snapshot.

  • github.com/spf13/cobra30039%
  • k8s.io/apimachinery14018%
  • github.com/hashicorp/consul9613%