Skip to content
callcount

github.com/goharbor/harbor/src/lib/q.New

third-party

The 6511th most-called third-party function by production calls. Called 182 times across 1 modules; 96 of those run outside tests and generated code.

No change in production calls since 2026-W48.

All of github.com/goharbor/harbor/src/lib/q → Docs on pkg.go.dev ↗

prod calls
96
non-test, non-generated
all calls
182
total callsites
modules
1
distinct callers
in loop
10%
of prod calls
in tests
47%
86 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 function100%A direct call to an exported package function, resolved by type.

who calls this

Notable callers

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

New · 12 of 182 callsites
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/scan/export/filter_processor.go:62

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    server/v2.0/handler/search.go:96

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/scan/export/filter_processor.go:101

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    server/v2.0/handler/assembler/report.go:106

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    server/v2.0/handler/search.go:154

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    controller/event/handler/internal/artifact.go:334

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    controller/artifact/controller.go:422

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    controller/artifact/controller.go:552

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    controller/artifact/controller.go:694

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    controller/artifact/controller.go:856

    in loop
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/user/dao/dao_test.go:178

    in loop test
  • goharbor/harbor/src @v0.0.0-20261127072106-3cc8b5c161d3

    pkg/scan/init.go:42

top callers

The modules that reach for it

The modules that call New most in this snapshot.

  • github.com/goharbor/harbor/src182100%