8 lines
111 B
Bash
8 lines
111 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [ -n "$(gofmt -l .)" ]; then
|
||
|
echo "Go code is not formatted:"
|
||
|
gofmt -d .
|
||
|
exit 1
|
||
|
fi
|