github.com/westcoastroms/westcoastroms-build@v0.0.0-20190928114312-2350e5a73030/build/blueprint/.travis.gofmt.sh (about)

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