diff options
Diffstat (limited to 'template/go/snip-err-log-fatal.go')
-rw-r--r-- | template/go/snip-err-log-fatal.go | 3 |
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) +} |