Skip to content
callcount

github.com/goharbor/harbor/src/lib/errors.Error.WithMessage

third-party

The 4364th most-called third-party method by production calls. Called 152 times across 1 modules; 137 of those run outside tests and generated code.

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

prod calls
137
non-test, non-generated
all calls
152
total callsites
modules
1
distinct callers
in loop
4%
of prod calls
in tests
10%
15 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.WithMessage 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 152, prioritizing in-loop and non-test usage. We link to source, never display it.

Error.WithMessage · 12 of 152 callsites
  • goharbor/harbor/src @v0.0.0-20260805041917-93de6ff8f6c9

    lib/q/builder.go:67

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

    pkg/reg/model/policy.go:74

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

    pkg/scan/sbom/sbom.go:236

    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/webhook.go:423

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

    pkg/artifact/dao/dao.go:458

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

    pkg/queuestatus/dao/dao.go:27

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

    lib/endpoint.go:31

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

    registryctl/api/base.go:45

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

    server/v2.0/handler/member.go:48

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

    server/v2.0/handler/oidc.go:48

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

    server/v2.0/handler/schedule.go:48

top callers

The modules that reach for it

The modules that call Error.WithMessage most in this snapshot.

  • github.com/goharbor/harbor/src152100%

siblings

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

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