Skip to content

Instantly share code, notes, and snippets.

@lummie
Created November 30, 2015 11:55
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 lummie/f451416a506d30b89a6f to your computer and use it in GitHub Desktop.
Save lummie/f451416a506d30b89a6f to your computer and use it in GitHub Desktop.
GoSublime User settings for build / test on Save
{
"on_save": [{
"cmd": "gs9o_run_many", "args": {
"commands":[
["clear"],
["sh", "if [ -f onsave.sh ]; then ./onsave.sh; else gofmt -s -w ./ && go build . errors && go test -i && go test && go vet && golint ; fi"]
],
"focus_view": false
}
}],
"fmt_cmd": ["goimports"]
}
@lummie
Copy link
Author

lummie commented May 16, 2016

Dependent tools

go get -u github.com/golang/lint/golint
go get golang.org/x/tools/cmd/goimports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment