tylerb
4/25/2014 - 3:29 PM

GoSublime Settings

GoSublime Settings

{
	"snippets": [
	    {
	        "match": {"global": true, "pkgname": ".", "fn": ".*_test.go"},
	        "snippets": [
	            {"text": "func Test", "title": "", "value": "func Test${1:ObjectName}${2:TestName}(t *testing.T) {\n\t$0\n}"},
	            {"text": "func Benchmark", "title": "", "value": "func Benchmark${1:ObjectName}${2:BenchmarkName}(b *testing.B) {\n\n\tb.StopTimer()\n\n\t$0\n\n\tb.StartTimer()\n\n\tfor i := 0; i < b.N; i++ {\n\t\t\n\t}\n\n}"},
	            {"text": "func Example", "title": "", "value": "func Example${1:ObjectName}${2:ExampleName}() {\n\n\t$0\n\n\t// Output:\n\t// \n\n}"}
	        ]
	    }
	],
	"on_save": [
    	{"cmd": "gs9o_open", "args": {"run": ["sh", "go build . errors && go test -i && go test && go vet && golint ."], "focus_view": false}}
	],
	"autocomplete_closures": true,
	"complete_builtins": true,
	"fmt_cmd": ["goimports"]
}