Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmp/cmpopts: use errors.Is with ≥go1.13 in compareErrors
Use the standard definition of errors.Is to implement compareErrors with ≥go1.13. Retain the implementation using golang.org/x/xerrors for versions <go1.13. This will allow people using newer Go versions to get rid of the transitive dependency on golang.org/x/xerrors.
- Loading branch information