go-list: apply suggestions

Signed-off-by: gonejack <igonejack@gmail.com>
client-spec/clarity
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
1 changed files with 13 additions and 5 deletions

View File

@ -1,12 +1,20 @@
# go list
> 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`