-
Create a new live template under the Go template group
-
Give it an abbreviation. I use trun
-
Use the Go -> expression context
-
Paste this into the "Template text" box
t.Run("$NAME$", func(t *testing.T) {
$END$
})
Create a new live template under the Go template group
Give it an abbreviation. I use trun
Use the Go -> expression context
Paste this into the "Template text" box
t.Run("$NAME$", func(t *testing.T) {
$END$
})