Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 481f74b

Browse files
author
Simeon F. Willbanks
committed
Add snippets for declaring and initializing a single variable, both longhand and shorthand.
1 parent 3a70c26 commit 481f74b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

snippets/go.snippets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# variables
2+
snippet v
3+
${1} := ${2}
4+
snippet vr
5+
var ${1} ${2} = ${3}
16
# append
27
snippet ap
38
append(${1:slice}, ${2:value})

0 commit comments

Comments
 (0)