Hyprland-dotfiles/nvim/snips/snippets/go.json

18 lines
436 B
JSON
Raw Normal View History

2024-07-21 02:51:17 -04:00
{
"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"
}
}