blob: fa3775166f52cc55c32b72ffe453f9b2af89f5a2 [file] [log] [blame]
diff -u <(echo -n) <(find . -name "*.go" -not -path "./vendor/*" -not -path ".git/*" | xargs gofmt -s -d)
if [ $? == 0 ]; then
echo "Hurray....all code is formatted properly..."
exit 0
else
echo "There is issues's with the code formatting....please run go fmt on your code"
exit 1
fi