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: 3 modules, 54 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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