mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
73758295bb
* chore: Notes for go pages * Update pages/common/go-fmt.md Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com> * Update pages/common/go-list.md Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com> * Update pages/common/go-test.md Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com> --------- Co-authored-by: Ivan Baluta <ivanbaluta.dev@gmail.com>
485 B
485 B
go list
List packages or modules. Note:
./...is a Go package pattern understood by Go tooling. It matches the current package and all packages recursively under the current directory. More information: https://pkg.go.dev/cmd/go#hdr-List_packages_or_modules.
- List packages:
go list ./...
- List standard packages:
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