Skip to content

Instantly share code, notes, and snippets.

@rowanj
Created May 15, 2019 04:30
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 rowanj/2ac682b7ffde4d18b926581d17a7294f to your computer and use it in GitHub Desktop.
Save rowanj/2ac682b7ffde4d18b926581d17a7294f to your computer and use it in GitHub Desktop.
List all go files in dependency tree
go list -f '{{ join .Deps "\n" }}' | xargs -n 1 go list -f '{{ $path := .ImportPath}}{{ range $file := .GoFiles }}{{ $path }}{{ $file }}{{ "\n" }}{{ end }}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment