Skip to content

Commit

Permalink
more go snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
theniceboy committed Aug 14, 2022
1 parent 3977684 commit 3b6465b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Ultisnips/go.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ if err != nil {
${0}
endsnippet

snippet noe "utils.NoError"
if utils.NoError(err) {
${0}
}
endsnippet

snippet forr "For loop range"
for _, ${1:thing} := range ${2:things} {
${3://TODO}
Expand Down

0 comments on commit 3b6465b

Please sign in to comment.