Is is a proxy for the Is function in Go's standard `errors` library (pkg.go.dev/errors).
(err, target error)
| 348 | // Is is a proxy for the Is function in Go's standard `errors` library |
| 349 | // (pkg.go.dev/errors). |
| 350 | func Is(err, target error) bool { |
| 351 | return stderrors.Is(err, target) |
| 352 | } |
| 353 | |
| 354 | // HasType is a function wrapper around AsType dropping the where return value |
| 355 | // from AsType() making a function that can be used like this: |