Proposal: Allow explicitly ignoring errors
Opened this issue · 0 comments
TripleDogDare commented
There are instances where errors in external libraries expect an interface to return hard coded errors that need to be directly comparable.
I.E. The external library will do a check such as if err == mylib.ErrFoo
where they should be using errors.Is
.
Functions which use an ignored function should be expected to handle the errors the same as errors from imported packages which do not have coded errors.
Proposal for ignoring errors is similar to the tag for no errors (the none
and ignore
tags would be mutually exclusive).
I.E.
// Errors: ignore