aboutsummaryrefslogtreecommitdiff
path: root/template/go/snip-err-return.go
diff options
context:
space:
mode:
Diffstat (limited to 'template/go/snip-err-return.go')
-rw-r--r--template/go/snip-err-return.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/template/go/snip-err-return.go b/template/go/snip-err-return.go
new file mode 100644
index 0000000..4936685
--- /dev/null
+++ b/template/go/snip-err-return.go
@@ -0,0 +1,3 @@
+if err != nil {
+ return err
+}