Skip to content

Commit e700a11

Browse files
Kunde21AndreaCrotti
authored andcommitted
add method snippet to go-mode (#276)
Used to add a method to a struct with documentation comment.
1 parent 214ddf7 commit e700a11

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

snippets/go-mode/method

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# -*- mode: snippet -*-
2+
# name: method
3+
# key: mthd
4+
# contributor: @Kunde21
5+
# --
6+
// $2 ${5:...}
7+
func (${1:recv}) ${2:name}(${3:args}) $4 {
8+
$0
9+
}

0 commit comments

Comments
 (0)