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

Implement Unwrap() []error for Go 1.20 multi-error support #88

Open
ian-h-chamberlain opened this issue Feb 28, 2023 · 0 comments
Open

Comments

@ian-h-chamberlain
Copy link

Go 1.20 released recently, and includes support for wrapping multiple errors.

If implemented, this could probably replace WrappedErrors(), but it would be a breaking change to return a different type from Unwrap() and would also change the result of errors.Unwrap() on a retry error (as mentioned in #65). I'm not sure what the best approach for compatibility is here but it would be nice to have an API that matches up with the standard library's approach to multi-error unwrapping.

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

No branches or pull requests

1 participant