Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Add benchmark function snippet (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelkowalak authored and ramya-rao-a committed Nov 29, 2016
1 parent b814d29 commit b3b34d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snippets/go.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@
"prefix": "tf",
"body": "func Test$1(t *testing.T) {\n\t$0\n}"
},
"benchmark function": {
"prefix": "bf",
"body": "func Benchmark$1(b *testing.B) {\n\tfor ${2:i} := 0; ${2:i} < b.N; ${2:i}++ {\n\t\t$0\n\t}\n}"
},
"init function": {
"prefix": "finit",
"body": "func init() {\n\t$1\n}"
Expand Down

0 comments on commit b3b34d0

Please sign in to comment.