1
0
Fork 0
hivemind/.githooks/pre-commit

9 lines
151 B
Bash
Executable file

#!/bin/bash
changed="$(gofmt -d .)"
[ -n "$changed" ] && {
echo 'Some files are not formatted'
delta <<< "$changed"
exit 1
}
go vet ./...