Create a gist now

Instantly share code, notes, and snippets.

#!/bin/sh
for file in $(git diff --cached --name-status | awk '{print $2}')
do
gofmt -w $file
git add $file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment