Use errors.Is()
and errors.As()
to compare error values and types
#300
Labels
errors.Is()
and errors.As()
to compare error values and types
#300
Using
errors.Is()
anderrors.As()
to compare error values and types (respectively), and to get inside wrapped errors, is the way to go. Not critical to do right this moment, but it'll make the code more resilient to future changes.Originally posted by @dcormier in #299 (review)
The text was updated successfully, but these errors were encountered: