November 2018
Intermediate to advanced
346 pages
8h 12m
English
Once everything is installed, the following command:
$ godepgraph github.com/kisielk/godepgraph | dot -Tpng -o godepgraph.png
Will produce the following pretty picture for you:

As you can see, the dependency graph for godepgraph is nice and flat, and only relies on packages from the standard library (the green circles).
Let's try something a little more complicated: let's generate the dependency graph for the code we are going to use in the second part of this book:
$ godepgraph github.com/PacktPublishing/Hands-On-Dependency-Injection-in-Go/ch04/acme/ | dot -Tpng -o acme-graph-v1.png
This gives us an incredibly ...
Read now
Unlock full access