github.com/pkg/errors.New
third-partyThe 127th most-called third-party function by production calls. Called 10,358 times across 142 modules; 7,842 of those run outside tests and generated code.
- prod calls
- 7,842
- non-test, non-generated
- all calls
- 10,358
- total callsites
- modules
- 142
- distinct callers
- in loop
- 7%
- of prod calls
- in tests
- 24%
- 2,512 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 function81%A direct call to an exported package function, resolved by type.
- Package function (by syntax)19%A package function in a module outside the crawl, keyed by import path.
who calls this
Notable callers
Production calls into New from notable Go projects. Open one on the map to see what else it hammers.
- Docker 702 9%
- Grafana 598 8%
- Velero 261 3%
- Dgraph 252 3%
- CockroachDB 248 3%
where it's called
Callsites in the wild
12 representative callsites of 10,358, prioritizing in-loop and non-test usage. We link to source, never display it.
-
cockroachdb/cockroach @v19.2.12+incompatible
in loop - in loop
- in loop
- in loop
- in loop
- in loop
- in loop
- in loop
-
Mrs4s/MiraiGo @v0.0.0-20240226124653-54bdd873e3fe
in loop - in loop
-
Netflix/chaosmonkey @v0.0.0-20230120165304-3f8c23f85f2e
in loop - in loop
top callers
The modules that reach for it
The modules that call New most in this snapshot.
- github.com/hyperledger/fabric8388%
- github.com/opsgenie/opsgenie-go-sdk-v26797%
- github.com/velero-io/velero5315%
- github.com/vmware-tanzu/velero5315%
- github.com/bytebase/bytebase5105%
siblings
More from github.com/pkg/errors
The other most-called functions in this package. See all →