1#!/bin/bash23if [ -n "$(gofmt -l .)" ]; then4echo"Go code is not formatted:"5gofmt -d .
6exit17fi89gogenerate ./...
10if [ -n "$(gitstatus -s -uno)" ]; then11echo"Go generate output does not match commit."12echo"Did you forget to run go generate ./... ?"13exit114fi15