Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bracesdev/errtrace
/ f3Wrap
Function
f3Wrap
example_errhelper_test.go:19–21 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
}
18
19
func
f3Wrap() error {
20
return
wrap(errors.New(
"failed"
),
"foo"
)
21
}
22
23
func
wrap(err error, fields ...string) error {
24
return
errtrace.GetCaller().
Callers
1
f2Wrap
Function · 0.85
Calls
1
wrap
Function · 0.70
Tested by
no test coverage detected