mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 11:45:59 +02:00
go-list: apply suggestions
Signed-off-by: gonejack <igonejack@gmail.com>
This commit is contained in:
parent
1298e61d38
commit
8421b10d30
1 changed files with 13 additions and 5 deletions
|
@ -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`
|
||||||
|
|
Loading…
Add table
Reference in a new issue