Add custom map and range snippets for go-mode

This commit is contained in:
2019-12-09 11:29:04 +00:00
parent a6fd747e9a
commit 85688dbdfc
2 changed files with 12 additions and 0 deletions

5
snippets/go-mode/map Normal file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: map
# key: map
# --
map[${1:type}]${0:type}

7
snippets/go-mode/range Normal file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for range
# key: range
# --
for ${1:k}, ${2:v} := range $3 {
$0
}