Ideally we'd have a way to check identity, but deep equals will do.
(e1, e2 error)
| 217 | |
| 218 | // Ideally we'd have a way to check identity, but deep equals will do. |
| 219 | func sameError(e1, e2 error) bool { |
| 220 | return reflect.DeepEqual(e1, e2) |
| 221 | } |
| 222 | |
| 223 | // Unwrap is a synonym for Underlying, which allows Err to be used with the |
| 224 | // Unwrap, Is and As functions in Go's standard `errors` library. |
no outgoing calls
no test coverage detected
searching dependent graphs…