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

Add snippet for select statement #2004

Merged
merged 1 commit into from
Oct 15, 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
5 changes: 5 additions & 0 deletions snippets/go.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@
"body": "switch ${1:expression} {\ncase ${2:condition}:\n\t$0\n}",
"description": "Snippet for switch statement"
},
"select statement": {
"prefix": "sel",
"body": "select {\ncase ${1:condition}:\n\t$0\n}",
"description": "Snippet for select statement"
},
"case clause": {
"prefix": "cs",
"body": "case ${1:condition}:$0",
Expand Down