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