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.