Created
May 15, 2019 04:30
-
-
Save rowanj/2ac682b7ffde4d18b926581d17a7294f to your computer and use it in GitHub Desktop.
List all go files in dependency tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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