This file contains hidden or 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 | |
| # Run some pre commit checks on the Go source code. Prevent the commit if any errors are found | |
| echo "Running pre-commit checks on your code..." | |
| FILES=$(go list ./... | grep -v /vendor/) | |
| # Format the Go code | |
| go fmt ${FILES} |
NewerOlder