goimports -w $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./gen-go/*")
source of command: https://gist.github.com/bgentry/fd1ffef7dbde01857f66