add-xml-tag-go-snippet (#377)

This commit is contained in:
christiandins 2023-11-27 07:09:18 +01:00 committed by GitHub
parent 9e99f7d64a
commit 53d3df271d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}"