tree

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ConnectorDestinationNodeIdTag = "connectorDestination"
View Source
const ConnectorOriginNodeIdTag = "connectorOrigin"
View Source
const NodeFromTag = "nodeFrom"
View Source
const NodeIdTag = "nodeId"
View Source
const NodeIndexTag = "nodeIndex"

Variables

This section is empty.

Functions

func PrintStructured

func PrintStructured[T any](
	files []string,
	parser dep_tree.NodeParser[T],
) (string, error)

Types

type NodeWithLevel

type NodeWithLevel[T any] struct {
	*graph.Node[T]
	Lvl int
}

type StructuredTree

type StructuredTree struct {
	Tree                 map[string]interface{} `json:"tree" yaml:"tree"`
	CircularDependencies [][]string             `json:"circularDependencies" yaml:"circularDependencies"`
	Errors               map[string][]string    `json:"errors" yaml:"errors"`
}

type Tree

type Tree[T any] struct {
	*dep_tree.DepTree[T]
	Nodes []*NodeWithLevel[T]
	// contains filtered or unexported fields
}

func NewTree

func NewTree[T any](dt *dep_tree.DepTree[T]) (*Tree[T], error)

func (*Tree[T]) LoadNodes

func (t *Tree[T]) LoadNodes() error

func (*Tree[T]) Render

func (t *Tree[T]) Render() (*board.Board, error)

func (*Tree[T]) RenderStructured

func (t *Tree[T]) RenderStructured() ([]byte, error)

Jump to

Keyboard shortcuts

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