go mod why <packages...>
Show a shortest path in the import graph from the main module to each of the listed packages
Arguments
Name | Description |
---|---|
packages |
Options
Name | Description |
---|---|
-m | Treat its arguments as a list of modules |
-vendor | Ignore imports in tests of packages outside the main module |