Description
I want to give it the package path or name of a command and I would like to see that command and all its direct and indirect dependencies but only within my module. I do not want to see any packages from my go.mod
file or any stdlib packages. I also do not wish to see a
56F2
ny starting nodes of other packages within my module that I did not specify unless they are a direct or indirect import of the package/command I gave it.
For example, if my command main package M
imports module packages A
, B
, and C
(and B
also imports C
) and also imports stdlib package S
and vendor package V
then I would like to see:
A
^
|
M --> B
\ /
v v
C
(S
and V
intentionally omitted)
I've tried various combos of import
and all
alone with package path wildcards with ...
and subtracting packages with -
, but I ALWAYS end up with either a single package node or extra package noise starting points that I don't want. Is there not a way to do this? It seems like it would be the number one use case, but I've just burned 30 minutes trying to figure this out to no avail. What am I missing?