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