graph

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MPL-2.0 Imports: 2 Imported by: 54

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flatten

func Flatten(pkgMap Node, root Tree, flatten FlattenFunc)

Types

type Deps

type Deps struct {
	Direct     []pkg.Import
	Transitive map[pkg.ID]pkg.Package
}

type FlattenFunc

type FlattenFunc func(node Node) (key Node, value Node)

type Generic

type Generic generic.Type

func ReadGenericTree

func ReadGenericTree(lines []string, parser LineParser) ([]Generic, map[Generic][]Generic, error)

type LineParser

type LineParser func(line string) (level int, node Generic, err error)

level is 1-indexed

type Node

type Node generic.Type

type Tree

type Tree interface {
	Children() []Tree
}

Jump to

Keyboard shortcuts

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