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

Function ExampleCause

example_test.go:106–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106func ExampleCause() {
107 err := fn()
108 fmt.Println(err)
109 fmt.Println(errors.Cause(err))
110
111 // Output: outer: middle: inner: error
112 // error
113}
114
115func ExampleWrap_extended() {
116 err := fn()

Callers

nothing calls this directly

Calls 2

fnFunction · 0.85
CauseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…