vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

snippet for `errors.Is` and `errors.As`

Open igorcafe opened this issue 10 months ago • 0 comments

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.

igorcafe avatar Apr 23 '24 17:04 igorcafe