Created
July 12, 2022 13:24
-
-
Save alexrios/a7d8b886d88e85a14f416a4dab6d8f41 to your computer and use it in GitHub Desktop.
goimports excluding folders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DIRS=$(go list -f {{.Dir}} ./... | grep -vE 'docs|proto|gen') | |
for d in $DIRS; do goimports -w $d/*.go; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment