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