Skip to content

Instantly share code, notes, and snippets.

@smiller171
Last active June 12, 2017 17:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smiller171/f80b53144d33f5538c53 to your computer and use it in GitHub Desktop.
Save smiller171/f80b53144d33f5538c53 to your computer and use it in GitHub Desktop.
List all go dependencies that are not in the standard library
go list -f '{{join .Deps "\n"}}' | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}'
go list -f '{{join .Deps "\n"}}' | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' | awk -F'/' '{print $1 "/" $2 "/" $3}' | sort -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment