github.com/maeglindeveloper/gqlgen@v0.13.1-0.20210413081235-57808b12a0a0/.github/workflows/check-fmt (about)

     1  #!/bin/bash
     2  
     3  set -euo pipefail
     4  
     5  go fmt ./...
     6  if [[ $(git --no-pager diff) ]] ; then
     7      echo "you need to run "go fmt" and commit the changes"
     8      git --no-pager diff
     9      exit 1
    10  fi