Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGraph ¶
func BuildGraph(packages *PackageList, excludes []string) (*depgraph.MutableDirectedGraph, error)
BuildGraph receives a list of Go packages and constructs a dependency graph from it. Any core library dependencies (fmt, strings, etc.) are not added to the graph. Any packages whose import path is contained within a list of "excludes" are not added to the graph. Returns a directed graph and a map of package import paths to node ids, or an error.
Types ¶
type PackageList ¶
type PackageList struct {
Packages []Package
}
func (*PackageList) Add ¶
func (p *PackageList) Add(pkg Package)
Click to show internal directories.
Click to hide internal directories.