18 lines
436 B
JSON
18 lines
436 B
JSON
|
{
|
||
|
"map declaration": {
|
||
|
"prefix": "map",
|
||
|
"body": "map[${1:type}]${2:type}",
|
||
|
"description": "Snippet for a map"
|
||
|
},
|
||
|
"goroutine anonymous function": {
|
||
|
"prefix": "go",
|
||
|
"body": "go func($1) {\n\t$0\n}($2)",
|
||
|
"description": "Snippet for anonymous goroutine declaration"
|
||
|
},
|
||
|
"goroutine function": {
|
||
|
"prefix": "gf",
|
||
|
"body": "go ${1:func}($0)",
|
||
|
"description": "Snippet for goroutine declaration"
|
||
|
}
|
||
|
}
|