diff --git a/snippets/go-mode/bf b/snippets/go-mode/bf new file mode 100644 index 0000000..1fa6a23 --- /dev/null +++ b/snippets/go-mode/bf @@ -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++ { + + } +} \ No newline at end of file