Command
go list -m allExplanation
List Go packages, modules, and their dependencies in various formats.
Examples
List all modules
go list -m allList all packages
go list ./...List with imports
go list -f "{{.ImportPath}} {{.Imports}}"go list -m allList Go packages, modules, and their dependencies in various formats.
List all modules
go list -m allList all packages
go list ./...List with imports
go list -f "{{.ImportPath}} {{.Imports}}"