Skip to content

Instantly share code, notes, and snippets.

@aalemayhu
Created March 17, 2017 09:36
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aalemayhu/cbe4363cca9fcb2ba1ee498a979d854c to your computer and use it in GitHub Desktop.
Save aalemayhu/cbe4363cca9fcb2ba1ee498a979d854c to your computer and use it in GitHub Desktop.
Run gofmt on changed files
for x in `git status -s|awk '{ print $2}'`; do gofmt -w $x; done
@kamal-github
Copy link

👍

@ijoanet
Copy link

ijoanet commented Aug 17, 2021

So cool, thanks!

@jzbyers
Copy link

jzbyers commented Nov 2, 2022

Love this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment