gonum.org/v1/gonum@v0.14.0/.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