Skip to content
callcount

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

third-party

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

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

prod calls
187
non-test, non-generated
all calls
204
total callsites
modules
1
distinct callers
in loop
11%
of prod calls
in tests
8%
17 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 Wrap 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 204, prioritizing in-loop and non-test usage. We link to source, never display it.

Wrap · 12 of 204 callsites
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    jobservice/job/impl/gc/util.go:34

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    pkg/retention/policy/builder.go:72

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    pkg/p2p/preheat/policy/filter.go:74

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    pkg/retention/policy/builder.go:79

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    pkg/config/db/dao/dao.go:79

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    pkg/notifier/event/event.go:85

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

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

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    pkg/p2p/preheat/policy/filter.go:111

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    pkg/retention/policy/alg/or/processor.go:114

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    pkg/retention/policy/alg/or/processor.go:116

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    jobservice/migration/manager.go:133

    in loop
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    controller/event/handler/webhook/scan/scan.go:139

    in loop

top callers

The modules that reach for it

The modules that call Wrap most in this snapshot.

  • github.com/goharbor/harbor/src204100%

siblings

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

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