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

Skip to content

Commit 6acd456

Browse files
author
opennota
committed
Add fori snippet for Go
1 parent f3421aa commit 6acd456

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

UltiSnips/go.snippets

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ for ${1:condition}${1/(.+)/ /}{
5252
}
5353
endsnippet
5454

55+
snippet fori "Integer for loop" b
56+
for ${1:i} := 0; $1 < ${2:N}; $1++ {
57+
${0:${VISUAL}}
58+
}
59+
endsnippet
60+
5561
snippet forr "For range loop" b
5662
for ${2:name} := range ${1:collection} {
5763
${0:${VISUAL}}

0 commit comments

Comments
 (0)