Skip to content

Commit a1f605c

Browse files
Andrei Eremeevlpil
Andrei Eremeev
authored andcommitted
fix: go: st and inf generated non-compilable code
1 parent 393d980 commit a1f605c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/go.snippets

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ snippet in "interface"
5959
interface{}
6060

6161
snippet inf "full interface "
62-
interface ${1:name} {
62+
type ${1:name} interface {
6363
${2:/* methods */}
6464
}
6565

@@ -188,7 +188,7 @@ snippet sr "string"
188188
string
189189

190190
snippet st "struct"
191-
struct ${1:name} {
191+
type ${1:name} struct {
192192
${2:/* data */}
193193
}
194194
${0}

0 commit comments

Comments
 (0)