go list
List packages or modules. More information: https://golang.org/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
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.