Usage of godepq:
-all-paths=false: whether to include all paths in the result
-from="": root package
-ignore="": regular expression for packages to ignore
-include="": regular expression for packages to include
(excluding packages matching -ignore)
-include-stdlib=false: whether to include go standard library imports
-include-tests=false: whether to include test imports
-o="list": {list: print path(s), dot: export dot graph}
-to="": target package for querying dependency paths
godepq
A utility for inspecting go import trees
Installation:
Examples:
List the packages imported:
Find a path between two packages:
Track down how a test package is being pulled into a production binary:
List imported packages, searching only packages which name starts with “k8s.io/kubernetes”:
Note: This is not an official Google product.