You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Not exactly.
I love the extension snippets, I use iferr all the time and I miss a snippet to errors.Is and As.
Describe the solution you'd like
Suggestion: erris -> if errors.Is(err, <cursor>) { ... } erras -> if errors.As(err, &<cursor>) { ... }
Describe alternatives you've considered
Typing it manually.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Not exactly.
I love the extension snippets, I use
iferr
all the time and I miss a snippet toerrors.Is
andAs
.Describe the solution you'd like
Suggestion:
erris
->if errors.Is(err, <cursor>) { ... }
erras
->if errors.As(err, &<cursor>) { ... }
Describe alternatives you've considered
Typing it manually.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: