feat(lang): add bf (benchmark func) snippet for go-mode

This commit is contained in:
2021-02-16 22:49:49 +00:00
parent 7a02ca009b
commit 62029fd834

10
snippets/go-mode/bf Normal file
View File

@@ -0,0 +1,10 @@
# name: func BenchmarkName(b *testing.B) { for ... { ... } }
# key: bf
# --
func Benchmark${1:Name}(b *testing.B) {
$0
for n := 0; n < b.N; n++ {
}
}