diff --git a/snippets/go-mode/func b/snippets/go-mode/func index 41b39c8..dc39c72 100644 --- a/snippets/go-mode/func +++ b/snippets/go-mode/func @@ -1,5 +1,5 @@ # key: func # -- -func ${1:name}($2) { - $0 +func ${1:name}($2) $3 { + $0 } \ No newline at end of file diff --git a/snippets/go-mode/meth b/snippets/go-mode/meth index 99dc610..4569657 100644 --- a/snippets/go-mode/meth +++ b/snippets/go-mode/meth @@ -1,6 +1,6 @@ # name: struct method # key: meth # -- -func (${1:s *Struct}) ${2:Name}($3) { +func (${1:s *${2:Struct}) ${3:name}($4) $5 { $0 } \ No newline at end of file