Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions snippets/go.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@
"body": "func Test$1(t *testing.T) {\n\t$0\n}",
"description": "Snippet for Test function"
},
"test main": {
"prefix": "tm",
"body": "func TestMain(m *testing.M) {\n\t$1\n\n\tos.Exit(m.Run())\n}",
"description": "Snippet for TestMain function"
},
"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}",
Expand Down