MCPcopy
hub / github.com/pkg/errors / Unwrap

Function Unwrap

go113.go:36–38  ·  view source on GitHub ↗

Unwrap returns the result of calling the Unwrap method on err, if err's type contains an Unwrap method returning error. Otherwise, Unwrap returns nil.

(err error)

Source from the content-addressed store, hash-verified

34// type contains an Unwrap method returning error.
35// Otherwise, Unwrap returns nil.
36func Unwrap(err error) error {
37 return stderrors.Unwrap(err)
38}

Callers 1

TestUnwrapFunction · 0.85

Calls 1

UnwrapMethod · 0.45

Tested by 1

TestUnwrapFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…