Files
tldr/pages/common/go-list.md
T
Harshavardhan 73758295bb go*: add a note (#22744)
* 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>
2026-06-07 02:22:57 -07:00

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