8 lines
105 B
Bash
Raw Permalink Normal View History

2021-12-04 16:42:11 +00:00
#!/bin/bash
if [ -n "$(gofmt -l .)" ]; then
echo "Go code is not formatted:"
gofmt -d .
exit 1
fi