Skip to content
callcount

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

third-party

The 1463rd most-called third-party function by production calls. Called 488 times across 1 modules; 423 of those run outside tests and generated code.

No change in production calls since 2026-W37.

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

prod calls
423
non-test, non-generated
all calls
488
total callsites
modules
1
distinct callers
in loop
6%
of prod calls
in tests
13%
65 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 488, prioritizing in-loop and non-test usage. We link to source, never display it.

New · 12 of 488 callsites
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    server/middleware/v2auth/auth.go:57

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    lib/q/builder.go:65

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    lib/q/builder.go:71

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/reg/model/policy.go:73

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/accessory/manager.go:138

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    lib/retry/retry.go:142

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/reg/adapter/harbor/base/adapter.go:146

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/reg/adapter/harbor/base/adapter.go:149

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/reg/adapter/harbor/base/adapter.go:152

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/reg/adapter/harbor/base/adapter.go:155

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    jobservice/worker/cworker/reaper.go:244

    in loop
  • goharbor/harbor/src @v0.0.0-20260921091320-6d24f6c57685

    pkg/scan/job.go:267

    in loop

top callers

The modules that reach for it

The modules that call New most in this snapshot.

  • github.com/goharbor/harbor/src488100%

siblings

More from github.com/goharbor/harbor/src/lib/errors

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