diff --git a/snippets/go.snippets b/snippets/go.snippets index 86be140..8623eda 100644 --- a/snippets/go.snippets +++ b/snippets/go.snippets @@ -230,14 +230,12 @@ snippet ga go func(${1} ${2:type}) { ${3:/* code */} }(${0}) -# test function -snippet test +snippet test test function func Test${1:name}(t *testing.T) { ${2} } ${0} -# benchmark function -snippet bench +snippet bench benchmark function func Benchmark${1:name}(b *testing.B) { for i := 0; i < b.N; i++ { ${2}