.travis.gofmt.sh 205 B

1234567
  1. #!/bin/bash
  2. if [[ -n $(find . -path '*/vendor/*' -prune -o -path '*.glide/*' -prune -o -name '*.go' -type f -exec gofmt -l {} \;) ]]; then
  3. echo "Go code is not formatted:"
  4. gofmt -d .
  5. exit 1
  6. fi