aboutsummaryrefslogtreecommitdiff
path: root/template/go/snip-err-log-fatal.go
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2020-01-28 00:06:10 +0900
committerGitHub <noreply@github.com>2020-01-28 00:06:10 +0900
commitec4b09feb065fe3b60af4e6e3de8d034ac08ac41 (patch)
tree11d41269dd60e4fdfdef71c948eb93be282571c3 /template/go/snip-err-log-fatal.go
parentac26968d9e3957718192c4b32721e1c386dfb14f (diff)
parent7fc55ca2e5d11ffe399751519ae4dd24bf1fdb9e (diff)
downloadvim-sonictemplate-ec4b09feb065fe3b60af4e6e3de8d034ac08ac41.tar.gz
vim-sonictemplate-ec4b09feb065fe3b60af4e6e3de8d034ac08ac41.tar.bz2
vim-sonictemplate-ec4b09feb065fe3b60af4e6e3de8d034ac08ac41.zip
Merge pull request #40 from hiroakis/feature/go
Add some snippet to go
Diffstat (limited to 'template/go/snip-err-log-fatal.go')
-rw-r--r--template/go/snip-err-log-fatal.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/template/go/snip-err-log-fatal.go b/template/go/snip-err-log-fatal.go
new file mode 100644
index 0000000..48a2c6b
--- /dev/null
+++ b/template/go/snip-err-log-fatal.go
@@ -0,0 +1,3 @@
+if err != nil {
+ log.Fatal(err)
+}