Skip to content

Instantly share code, notes, and snippets.

@alexrios
Created July 12, 2022 13:24
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