golang hooks for http://pre-commit.com/
Add this to your .pre-commit-config.yaml
- repo: git://github.com/gabriel/pre-commit-golang
sha: HEAD
hooks:
- id: go-fmt
- id: go-vet
- id: go-lint
go-fmt- Runsgofmt, requires golanggo-vet- Runsgo vet, requires golanggo-lint- Runsgolint, requires https://github.com/golang/lint
go-metalinter- Runsgometalinter, requires https://github.com/alecthomas/gometalinter