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