nvim/snippets/go.json
2024-01-28 16:12:42 +08:00

23 lines
299 B
JSON

{
"class": {
"prefix": "class",
"body": "type $1 struct{$2}\n$0"
},
"errnil": {
"prefix": "errnil",
"body": [
"if err != nil {",
" $1",
"}"
]
},
"init": {
"prefix": "init",
"body": [
"func init() {",
" $1",
"}"
]
}
}