We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3063e68 commit 0cc44a4Copy full SHA for 0cc44a4
snippets/go.json
@@ -110,6 +110,11 @@
110
"body": "if err != nil {\n\t${1:return ${2:nil, }${3:err}}\n}",
111
"description": "Snippet for if err != nil"
112
},
113
+ "if err block": {
114
+ "prefix": "iferb",
115
+ "body": "if err := $1; err != nil {\n\t${2:return $3 err}\n}\n",
116
+ "description": "Snippet for if err block"
117
+ },
118
"fmt.Println": {
119
"prefix": "fp",
120
"body": "fmt.Println(\"$1\")",
0 commit comments