Skip to content

Instantly share code, notes, and snippets.

@ondrajz
Last active December 29, 2019 10:44
Show Gist options
  • Save ondrajz/b87d4487138e0e5e9ebe31d837314927 to your computer and use it in GitHub Desktop.
Save ondrajz/b87d4487138e0e5e9ebe31d837314927 to your computer and use it in GitHub Desktop.
Go

Go

List

# 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}}' 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment