github.com/jingcheng-WU/gonum@v0.9.1-0.20210323123734-f1a2a11a8f7b/.github/workflows/script.d/check-formatting.sh (about)

     1  #!/bin/bash
     2  
     3  test -z "$(goimports -d .)"
     4  if [[ -n "$(gofmt -s -l .)" ]]; then
     5  	echo -e '\e[31mCode not gofmt simplified in:\n\n'
     6  	gofmt -s -l .
     7  	echo -e "\e[0"
     8  fi