summary refs log tree commit diff
path: root/snippets/go-mode/iferr
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-01-19 08:20:39 -0800
committerFranck Cuny <franck@fcuny.net>2024-01-19 08:20:39 -0800
commit42a8ec8a9f743b6e8c56b8c5dd7264a70c273848 (patch)
treeff5060f9f7db2303f7a7e152251d4e36f586fa27 /snippets/go-mode/iferr
parentswitch to `nixd` for nix LSP (diff)
downloademacs.d-42a8ec8a9f743b6e8c56b8c5dd7264a70c273848.tar.gz
add a few more snippets for go
Diffstat (limited to 'snippets/go-mode/iferr')
-rw-r--r--snippets/go-mode/iferr3
1 files changed, 3 insertions, 0 deletions
diff --git a/snippets/go-mode/iferr b/snippets/go-mode/iferr
new file mode 100644
index 0000000..667de41
--- /dev/null
+++ b/snippets/go-mode/iferr
@@ -0,0 +1,3 @@
+if err != nil {
+	$0
+}
\ No newline at end of file