1 2 3 4 5 6 7
#!/bin/bash cd "$(dirname $0)" if [ -n "$(go fmt ./...)" ]; then echo "Go code is not formatted, run 'go fmt github.com/google/stenographer/...'" >&2 exit 1 fi