Documentation
¶
Index ¶
- Constants
- func PrintStructured[T any](entrypoint string, parserBuilder NodeParserBuilder[T]) (string, error)
- type DepTree
- func (dt *DepTree[T]) LoadCycles()
- func (dt *DepTree[T]) LoadDeps() error
- func (dt *DepTree[T]) LoadGraph() error
- func (dt *DepTree[T]) LoadNodes() error
- func (dt *DepTree[T]) Render() (*board.Board, error)
- func (dt *DepTree[T]) RenderStructured() ([]byte, error)
- func (dt *DepTree[T]) Root() (*graph.Node[T], error)
- type DepTreeNode
- type NodeParser
- type NodeParserBuilder
- type StructuredTree
- type TestParser
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]( entrypoint string, parserBuilder NodeParserBuilder[T], ) (string, error)
Types ¶
type DepTree ¶
type DepTree[T any] struct { // Info present on DepTree construction. NodeParser[T] // Info present just after node processing. Graph *graph.Graph[T] Nodes []*DepTreeNode[T] Cycles *orderedmap.OrderedMap[[2]string, graph.Cycle] // contains filtered or unexported fields }
func NewDepTree ¶
func NewDepTree[T any](parser NodeParser[T]) *DepTree[T]
func (*DepTree[T]) LoadCycles ¶ added in v0.17.4
func (dt *DepTree[T]) LoadCycles()
func (*DepTree[T]) RenderStructured ¶
type NodeParser ¶
type NodeParserBuilder ¶ added in v0.13.5
type NodeParserBuilder[T any] func(string) (NodeParser[T], error)
type StructuredTree ¶
type TestParser ¶
func (*TestParser) Entrypoint ¶
func (t *TestParser) Entrypoint() (*graph.Node[[]int], error)
Click to show internal directories.
Click to hide internal directories.