DepGraph is a package to figure out an efficient dependency tree for a Go package.
The dependency graph is built by inspecting file imports only, which is faster than go list
, or ast parsing.
It can be used to figure out why a particular package is imported into a service.