Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Better snippet #1980

Merged
merged 1 commit into from
Oct 10, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions snippets/go.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,9 @@
},
"if err != nil": {
"prefix": "iferr",
"body": "if err != nil {\n\t${1:return}\n}",
"body": "if err != nil {\n\t${1:return ${2:nil, }${3:err}}\n}",
"description": "Snippet for if err != nil"
},
"if err != nil with return": {
"prefix": "iferrret",
"body": "if err != nil {\n\treturn ${1:nil, }err\n}",
"description": "Snippet for if err != nil with return"
},
"fmt.Println": {
"prefix": "fp",
"body": "fmt.Println(\"$1\")",
Expand Down Expand Up @@ -251,4 +246,4 @@
"description": "Snippet for sample hello world webapp"
}
}
}
}