mirror of https://github.com/CrimsonTome/tldr.git
go-list: apply suggestions
Signed-off-by: gonejack <igonejack@gmail.com>client-spec/clarity
parent
1298e61d38
commit
8421b10d30
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue