How can I run goimports on all folders expect Godeps and .git from a Makefile?
Use find to list all your go files and run a command goimports -w over it:
find . -name \*.go -not -path <FOLDER TO IGNORE> -not -path <ANOTHER FOLDER TO IGNORE> -exec goimports -w {} \;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With