Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/duke-git/lancet
/ ExampleNew
Function
ExampleNew
xerror/xerror_example_test.go:12–18 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
10
)
11
12
func
ExampleNew() {
13
err := New(
"error"
)
14
fmt.Println(err.Error())
15
16
// Output:
17
// error
18
}
19
20
func
ExampleWrap() {
21
err := New(
"wrong password"
)
Callers
nothing calls this directly
Calls
2
New
Function · 0.70
Error
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…