2020-05-08 13:39:47 +01:00
|
|
|
# go list
|
|
|
|
|
|
|
|
> List packages or modules.
|
2020-05-13 10:42:23 +01:00
|
|
|
> More information: <https://golang.org/cmd/go/#hdr-List_packages_or_modules>.
|
2020-05-08 13:39:47 +01:00
|
|
|
|
2020-05-13 10:42:23 +01:00
|
|
|
- List packages:
|
2020-05-08 13:39:47 +01:00
|
|
|
|
2020-05-13 10:42:23 +01:00
|
|
|
`go list ./...`
|
2020-05-08 13:39:47 +01:00
|
|
|
|
2020-05-13 10:42:23 +01:00
|
|
|
- List standard packages:
|
2020-05-08 13:39:47 +01:00
|
|
|
|
2020-05-13 10:42:23 +01:00
|
|
|
`go list std`
|
|
|
|
|
|
|
|
- List packages in json format:
|
|
|
|
|
|
|
|
`go list -json time net/http`
|
|
|
|
|
|
|
|
- List module dependencies and available updates:
|
|
|
|
|
|
|
|
`go list -m -u all`
|