depth
depth copied to clipboard
Does it work for package 'main'?
I tried this on a server program where I want to see the dependency tree starting from the main package. I cd'ed into the same directory where main.go is found and ran depth main. This returned 'main': FATAL: unable to resolve root package.
Of note is that I have many 'local' packages under main, and that is the tree that I would like to see.
Thanks.
How does this work with mod now? Where do these packages need to exist relative to gopath? Thanks
#310793