Skip to content

Instantly share code, notes, and snippets.

@warmans
Created April 14, 2015 20:12
Show Gist options
  • Save warmans/0655f3449ababf22e4c0 to your computer and use it in GitHub Desktop.
Save warmans/0655f3449ababf22e4c0 to your computer and use it in GitHub Desktop.
gofmt on change
while true; do inotifywait -qr --format '%w' *.go | while read FILE; do echo $FILE; gofmt -w $FILE; done; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment