MCPcopy Index your code
hub / github.com/pkg/errors / fn

Function fn

example_test.go:99–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func fn() error {
100 e1 := errors.New("error")
101 e2 := errors.Wrap(e1, "inner")
102 e3 := errors.Wrap(e2, "middle")
103 return errors.Wrap(e3, "outer")
104}
105
106func ExampleCause() {
107 err := fn()

Callers 3

ExampleCauseFunction · 0.85
ExampleWrap_extendedFunction · 0.85
Example_stackTraceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected