Is wraps the standard errors.Is function so that we don't need to alias that package.
(err, target error)
| 58 | |
| 59 | // Is wraps the standard errors.Is function so that we don't need to alias that package. |
| 60 | func Is(err, target error) bool { |
| 61 | return errors.Is(err, target) |
| 62 | } |
| 63 | |
| 64 | // As wraps the standard errors.As function so that we don't need to alias that package. |
| 65 | func As(err error, target any) bool { |
no outgoing calls
no test coverage detected