description after trigger
This commit is contained in:
parent
fb0a6fc758
commit
954853816a
@ -230,14 +230,12 @@ snippet ga
|
|||||||
go func(${1} ${2:type}) {
|
go func(${1} ${2:type}) {
|
||||||
${3:/* code */}
|
${3:/* code */}
|
||||||
}(${0})
|
}(${0})
|
||||||
# test function
|
snippet test test function
|
||||||
snippet test
|
|
||||||
func Test${1:name}(t *testing.T) {
|
func Test${1:name}(t *testing.T) {
|
||||||
${2}
|
${2}
|
||||||
}
|
}
|
||||||
${0}
|
${0}
|
||||||
# benchmark function
|
snippet bench benchmark function
|
||||||
snippet bench
|
|
||||||
func Benchmark${1:name}(b *testing.B) {
|
func Benchmark${1:name}(b *testing.B) {
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
${2}
|
${2}
|
||||||
|
Loading…
Reference in New Issue
Block a user