summary refs log tree commit diff
path: root/emacs/etc/snippets/go-mode/method
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-05-15 13:55:02 -0700
committerFranck Cuny <franck@fcuny.net>2022-05-15 13:55:28 -0700
commit4d5b158bb4245f0f5b58aa4e894f69d6079b4d27 (patch)
treef3a01c661e4c5c794daa7b07f219f56948f41b48 /emacs/etc/snippets/go-mode/method
parentsnippets: configure the default path (diff)
downloademacs.d-4d5b158bb4245f0f5b58aa4e894f69d6079b4d27.tar.gz
snippets: for go-mode
Diffstat (limited to '')
-rw-r--r--emacs/etc/snippets/go-mode/method8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/etc/snippets/go-mode/method b/emacs/etc/snippets/go-mode/method
new file mode 100644
index 0000000..78e61fc
--- /dev/null
+++ b/emacs/etc/snippets/go-mode/method
@@ -0,0 +1,8 @@
+# -*- mode: snippet -*-
+# name: method
+# key: method
+# --
+// $2 ${5:...}
+func (${1:recv}) ${2:name}(${3:args}) $4 {
+	$0
+}
\ No newline at end of file