9 lines
153 B
Bash
9 lines
153 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
result="$(gofmt -s -l .)"
|
||
|
if [ -n "$result" ]; then
|
||
|
echo "Go code is not formatted, run 'gofmt -s -w .'" >&2
|
||
|
echo "$result"
|
||
|
exit 1
|
||
|
fi
|