Skip to content

Instantly share code, notes, and snippets.

@skriticos
Created January 6, 2014 15:51
Show Gist options
  • Save skriticos/8284793 to your computer and use it in GitHub Desktop.
Save skriticos/8284793 to your computer and use it in GitHub Desktop.
iterate all go files in current directory and run them with the go fix and gofmt tool
#! /bin/bash
for f in *.go
do
echo "processing $f"
go fix "$f"
gofmt -w "$f"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment