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
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
