This script will build the dependency tree for the a module and print out a list version of the tree.
The first item on the list is the direct import into the project and then followed by the sub dependencies till the module been searched for is found.
This script does require the use of go mod
.
Also note if the dependency graph is to large a recursion error with be throw.
To Run
The script is required to be ran from with in the go project folder but does not require to be in the root folder.
If go mod graph
works this script can work.