(x int)
| 211 | } |
| 212 | |
| 213 | func ExampleErrorf(x int) (int, error) { |
| 214 | if x%2 == 1 { |
| 215 | return 0, Errorf("can only halve even numbers, got %d", x) |
| 216 | } |
| 217 | return x / 2, nil |
| 218 | } |
| 219 | |
| 220 | func ExampleWrapError() (error, error) { |
| 221 | // Wrap io.EOF with the current stack-trace and return it |
nothing calls this directly
no test coverage detected
searching dependent graphs…