-
-
Save deckarep/55be6043b45803501c8f1e3fad54ede5 to your computer and use it in GitHub Desktop.
Go project pre-commit hook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Save this file as ".git/hooks/pre-commit" in your | |
# git repository and set it to executable. | |
# | |
# To use the "go vet" command: | |
# $ go get -v code.google.com/p/go.tools/cmd/vet | |
# To use the "golint" command: | |
# $ go get -v github.com/golang/lint/golint | |
go fmt ./... | |
go vet ./... | |
golint . | |
go test ./... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment