go list

Usage:

go list [-f format] [-json] [-m] [list flags] [build flags] [packages]

go list其实是列出某一个pkg的详细信息,eg:go list -json github.com/stretchr/testify,最常使用的就是go list ./...列出当前目录的所有package

flags

-m flag causes list to list modules instead of packages.
A pattern containing “…” specifies the active modules whose module paths match the pattern.

发布了96 篇原创文章 · 获赞 0 · 访问量 1004

猜你喜欢

转载自blog.csdn.net/weixin_45594127/article/details/103871832