1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-07 15:46:02 +02:00

go-list: apply suggestions

Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
gonejack 2020-05-13 17:42:23 +08:00 committed by Starbeamrainbowlabs
parent 1298e61d38
commit 8421b10d30
No known key found for this signature in database
GPG key ID: 1BE5172E637709C2

View file

@ -1,12 +1,20 @@
# go list # go list
> List packages or modules. > List packages or modules.
> More information: <https://golang.org/cmd/go/>. > More information: <https://golang.org/cmd/go/#hdr-List_packages_or_modules>.
- List all packages: - List packages:
`go list all` `go list ./...`
- List all modules: - List standard packages:
`go list -m all` `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`