Skip to content

Commit

Permalink
Add Golang "if err" snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
maiwald committed Jan 2, 2023
1 parent 030b98c commit 100c8d2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .vsnip/go.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"iferror": {
"prefix": ["ife"],
"body": [
"if err != nil {",
"\treturn ${1:err} ",
"}"
],
"description": "If err != nil"
}
}
Empty file added .vsnip/vim.json
Empty file.

0 comments on commit 100c8d2

Please sign in to comment.