9 lines
151 B
Bash
Executable file
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 ./...
|