You can try using https://github.com/kisielk/godepgraph. Its a great tool.
In combination with GraphViz it can produce dependency graphs in various
formats.
Of course, you can always do something among the lines of go list -f
'{{.Deps}}', but I do not believe it will give you graph, only list of
dependencies.
On Sunday, July 30, 2017 at 6:55:05 AM UTC+2, Tong Sun wrote:
>
> Is there any tools out there that can show import tree for Go projects?
> I.e., the dependency graph that shows who imports what packages.
>
> During `go build -v` I saw one (3rd party) package that shouldn't be
> included, and am wondering who is introducing that dependency.
> How can I find out? Thx.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.