Is reports whether any error in err's tree matches target. The tree consists of err itself, followed by the errors obtained by repeatedly calling its Unwrap() error or Unwrap() []error method. When err wraps multiple errors, Is examines err followed by a depth-first traversal of its children. An e
(err, target error)
| 60 | // an example in the standard library. An Is method should only shallowly |
| 61 | // compare err and the target and not call [Unwrap] on either. |
| 62 | func Is(err, target error) bool { return errors.Is(err, target) } |
| 63 | |
| 64 | // Join returns an error that wraps the given errors. |
| 65 | // Any nil error values are discarded. |
no test coverage detected