We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ed4091 commit 84d9764Copy full SHA for 84d9764
snippets/go.snippets
@@ -230,3 +230,17 @@ snippet ga
230
go func(${1} ${2:type}) {
231
${3:/* code */}
232
}(${0})
233
+# test function
234
+snippet tst
235
+ func Test${1:name}(t *testing.T) {
236
+ ${2}
237
+ }
238
+ ${0}
239
+# benchmark function
240
+snippet bnch
241
+ func Benchmark${1:name}(b *testing.B) {
242
+ for i := 0; i < b.N; i++ {
243
244
245
246
0 commit comments