The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/.travis.gofmt.sh

9 lines
204 B

#!/bin/bash
if [ -n "$(gofmt -l .)" -o $(golint ./... | wc | awk '{print $1}') -gt "2" ]; then
echo "Go code is not formatted:"
gofmt -d .
exit 1
else
echo "Go code is well formatted ;)"
fi