Skip to content

Commit

Permalink
add-xml-tag-go-snippet (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
christiandins authored Nov 27, 2023
1 parent 9e99f7d commit 53d3df2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions snippets/go.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,11 @@
"body": "`json:\"$1\"`",
"description": "Snippet for struct json tag"
},
"xml tag": {
"prefix": "xml",
"body": "`xml:\"$1\"`",
"description": "Snippet for struct xml tag"
},
"if key in a map": {
"prefix": "om",
"body": "if ${1:value}, ok := ${2:map}[${3:key}]; ok {\n\t$4\n}"
Expand Down

0 comments on commit 53d3df2

Please sign in to comment.