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

Go1.13 errors compat #9

Merged
merged 2 commits into from
Jul 14, 2020
Merged

Go1.13 errors compat #9

merged 2 commits into from
Jul 14, 2020

Conversation

dnephin
Copy link
Contributor

@dnephin dnephin commented Jul 13, 2020

The first commit adds an Unwrap to the error type, so that errors created by errwrap can be unwrapped by errors.Is and errors.As.

The second commit adds another case to Walk (which is used by Get/GetAll/Contains/etc) to support the go1.13 wrap interface. This should allow existing packages to start using fmt.Errorf to wrap errors without having to change every errwrap call in a project.

@dnephin dnephin marked this pull request as ready for review July 13, 2020 16:58
@dnephin dnephin merged commit 7b00e5d into master Jul 14, 2020
@dnephin dnephin deleted the go1.13-errors-compat branch July 14, 2020 15:51
@dnephin
Copy link
Contributor Author

dnephin commented Jul 14, 2020

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants