# List all files in main module
go list -deps -f '{{if .Module}}{{if .Module.Main}}{{with $pkg := .}}{{range $file := $pkg.GoFiles}}{{printf "%v/%v\n" $pkg.Dir $file}}{{end}}{{end}}{{end}}{{end}}'
Last active
December 29, 2019 10:44
-
-
Save ondrajz/b87d4487138e0e5e9ebe31d837314927 to your computer and use it in GitHub Desktop.
Go
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment