Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
106
func
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
115
func
ExampleWrap_extended() {
116
err := fn()
Callers
nothing calls this directly
Calls
2
fn
Function · 0.85
Cause
Method · 0.65
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…