MCPcopy
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
12func ExampleNew() {
13 err := New("error")
14 fmt.Println(err.Error())
15
16 // Output:
17 // error
18}
19
20func ExampleWrap() {
21 err := New("wrong password")

Callers

nothing calls this directly

Calls 2

NewFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…