Skip to content

Instantly share code, notes, and snippets.

@andybons
Created June 27, 2013 15:11
Show Gist options
  • Save andybons/5877277 to your computer and use it in GitHub Desktop.
Save andybons/5877277 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Exit on error.
set -e
echo "Running go vet..."
go vet package/...
echo "Running tests..."
go test package/...
echo "Running gofmt..."
find . -name "*.go" | xargs gofmt -w
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment