Skip to content

Instantly share code, notes, and snippets.

@mark-rushakoff
Last active September 16, 2020 20:06
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 mark-rushakoff/d84957d47ebbdfabaafbfdf9e476bef7 to your computer and use it in GitHub Desktop.
Save mark-rushakoff/d84957d47ebbdfabaafbfdf9e476bef7 to your computer and use it in GitHub Desktop.
List all imports of your project, by count
go list -json ./... | jq -r '.Imports | map(select(contains("."))) | join("\n")' | sort | uniq -c | sort -n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment