Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmp/cmpopts: use errors.Is with ≥go1.13 in compareErrors #251

Merged
merged 1 commit into from Feb 5, 2021

Commits on Feb 4, 2021

  1. 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 packages using newer Go versions and already relying on
    the errors package to get rid of the transitive dependency on
    golang.org/x/xerrors.
    tklauser committed Feb 4, 2021
    Copy the full SHA
    e490247 View commit details
    Browse the repository at this point in the history