()
| 10 | ) |
| 11 | |
| 12 | func ExampleTrace() { |
| 13 | var err1 error = fmt.Errorf("something wicked this way comes") |
| 14 | var err2 error = nil |
| 15 | |
| 16 | // Tracing a non nil error will return an error |
| 17 | fmt.Println(errors.Trace(err1)) |
| 18 | // Tracing nil will return nil |
| 19 | fmt.Println(errors.Trace(err2)) |
| 20 | |
| 21 | // Output: something wicked this way comes |
| 22 | // <nil> |
| 23 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…