mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(lang): add bf (benchmark func) snippet for go-mode
This commit is contained in:
10
snippets/go-mode/bf
Normal file
10
snippets/go-mode/bf
Normal 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++ {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user