github.com/goharbor/harbor/src/lib/errors.Error.WithCode
third-partyThe 2976th most-called third-party method by production calls. Called 224 times across 1 modules; 200 of those run outside tests and generated code.
All of github.com/goharbor/harbor/src/lib/errors → Docs on pkg.go.dev ↗
- prod calls
- 200
- non-test, non-generated
- all calls
- 224
- total callsites
- modules
- 1
- distinct callers
- in loop
- 8%
- of prod calls
- in tests
- 11%
- 24 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 →
- Concrete method100%A method on a value whose type is known exactly.
who calls this
Notable callers
Production calls into Error.WithCode from notable Go projects. Open one on the map to see what else it hammers.
- Harbor 200 100%
where it's called
Callsites in the wild
12 representative callsites of 224, prioritizing in-loop and non-test usage. We link to source, never display it.
-
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
lib/q/builder.go:66
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
lib/q/builder.go:72
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
pkg/reg/model/policy.go:73
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
pkg/accessory/manager.go:138
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
pkg/task/execution.go:277
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
pkg/task/execution.go:307
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
server/v2.0/handler/robot.go:336
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
server/v2.0/handler/robot.go:352
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
server/v2.0/handler/robot.go:359
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
server/v2.0/handler/robot.go:363
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
server/v2.0/handler/webhook.go:412
in loop -
goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9
server/v2.0/handler/webhook.go:418
in loop
top callers
The modules that reach for it
The modules that call Error.WithCode most in this snapshot.
- github.com/goharbor/harbor/src224100%
siblings
More from github.com/goharbor/harbor/src/lib/errors
The other most-called members in this package. See all →