x/tools/gopls: Add if not nil postfix snippet #61763
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
help wanted
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
I am taking inspiration from GoLand's postfix completions.
Given a nil-able expression,
expr
,.nn
would help expand it toexpr != nil
.Before:
After:
Here is what the postfix snippet will look like.
The text was updated successfully, but these errors were encountered: