1#!/bin/bash 2 3set -exuo pipefail 4export GO111MODULE=on 5go fmt ./... 6cd _examples && go fmt ./... 7if [[ $(git --no-pager diff) ]] ; then 8 echo "you need to run "go fmt" and commit the changes" 9 git --no-pager diff 10 exit 1 11fi
View as plain text