depgraph

package
v0.0.0-...-82abcba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyGraph

type DependencyGraph struct {
	Nodes map[string]*Node
}

func New

func New() DependencyGraph

func (*DependencyGraph) AddDependency

func (g *DependencyGraph) AddDependency(from string, to string) error

func (*DependencyGraph) AddFile

func (g *DependencyGraph) AddFile(pkg string, path string)

func (*DependencyGraph) GetDependencies

func (g *DependencyGraph) GetDependencies(nodes []*Node) []*Node

func (*DependencyGraph) GetDependenciesOfPackage

func (g *DependencyGraph) GetDependenciesOfPackage(pkg string) []*Node

type Node

type Node struct {
	Pkg          string
	Path         string
	Dependencies *list.List
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL