Skip to content

Instantly share code, notes, and snippets.

@sumitasok
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumitasok/e8907a1861144831adce to your computer and use it in GitHub Desktop.
Save sumitasok/e8907a1861144831adce to your computer and use it in GitHub Desktop.
Go test with testify assert sublime snippet
<snippet>
<content><![CDATA[
package ${1:pkgname}
import (
// "fmt"
"github.com/stretchr/testify/assert"
"testing"
)
func ${2:funcname}(t *testing.T) {
assert := assert.New(T)
}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>gtst</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.go</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment