Skip to content

Instantly share code, notes, and snippets.

@alexrios
Created July 12, 2022 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexrios/a7d8b886d88e85a14f416a4dab6d8f41 to your computer and use it in GitHub Desktop.
Save alexrios/a7d8b886d88e85a14f416a4dab6d8f41 to your computer and use it in GitHub Desktop.
goimports excluding folders
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