.travis.gofmt.sh 123 B

12345678
  1. #!/bin/bash
  2. if [ -n "$(gofmt -s -l .)" ]; then
  3. echo "Go code is not properly formatted:"
  4. gofmt -s -d -e .
  5. exit 1
  6. fi