mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Add custom map and range snippets for go-mode
This commit is contained in:
5
snippets/go-mode/map
Normal file
5
snippets/go-mode/map
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: map
|
||||
# key: map
|
||||
# --
|
||||
map[${1:type}]${0:type}
|
||||
7
snippets/go-mode/range
Normal file
7
snippets/go-mode/range
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: for range
|
||||
# key: range
|
||||
# --
|
||||
for ${1:k}, ${2:v} := range $3 {
|
||||
$0
|
||||
}
|
||||
Reference in New Issue
Block a user