Merge pull request #291 from simeonwillbanks/rename-go-variable-snippets

Rename go variable snippets
This commit is contained in:
Simeon Willbanks 2013-10-28 15:44:46 -07:00
commit 940d31aa06

View File

@ -1,8 +1,17 @@
# variables
# shorthand variable declaration
snippet v
${1} := ${2}
# variable initialization
snippet vr
var ${1:t} ${0:string}
# variable declaration
snippet var
var ${1} ${2} = ${3}
# variables declaration
snippet vars
var (
${1} ${2} = ${3}
)
# append
snippet ap
append(${1:slice}, ${0:value})
@ -213,9 +222,6 @@ snippet sp
# true
snippet t
true
# variable declaration
snippet v
var ${1:t} ${0:string}
# goroutine named function
snippet g
go ${1:funcName}(${0})