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

refactor(process): compare error with errors.Is #1453

Merged
merged 1 commit into from Apr 28, 2023
Merged

refactor(process): compare error with errors.Is #1453

merged 1 commit into from Apr 28, 2023

Conversation

Juneezee
Copy link
Contributor

Starting from Go 1.13, errors.Is is the preferable way to compare error equality 1.

Footnotes

  1. https://go.dev/blog/go1.13-errors

Starting from Go 1.13, `errors.Is` is the preferable way to compare
error equality [1].

[1]: https://go.dev/blog/go1.13-errors

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Copy link
Owner

@shirou shirou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly! Thank you so much!

@shirou shirou merged commit db89d12 into shirou:master Apr 28, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants