Better name
This commit is contained in:
parent
84d9764fb5
commit
fb0a6fc758
@ -231,13 +231,13 @@ snippet ga
|
|||||||
${3:/* code */}
|
${3:/* code */}
|
||||||
}(${0})
|
}(${0})
|
||||||
# test function
|
# test function
|
||||||
snippet tst
|
snippet test
|
||||||
func Test${1:name}(t *testing.T) {
|
func Test${1:name}(t *testing.T) {
|
||||||
${2}
|
${2}
|
||||||
}
|
}
|
||||||
${0}
|
${0}
|
||||||
# benchmark function
|
# benchmark function
|
||||||
snippet bnch
|
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