Skip to content

Commit

Permalink
Merge pull request honza#291 from simeonwillbanks/rename-go-variable-…
Browse files Browse the repository at this point in the history
…snippets

Rename go variable snippets
  • Loading branch information
Simeon Willbanks committed Oct 28, 2013
2 parents f621635 + 54ca21a commit 940d31a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions snippets/go.snippets
Original file line number Diff line number Diff line change
@@ -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})
Expand Down Expand Up @@ -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})
Expand Down

0 comments on commit 940d31a

Please sign in to comment.