Documentation
¶
Index ¶
- Constants
- func PrintStructured[T any](files []string, parser NodeParser[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]) WithStdErrLoader() *DepTree[T]
- 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]( files []string, parser NodeParser[T], ) (string, error)
Types ¶
type DepTree ¶
type DepTree[T any] struct { // Info present on DepTree construction. Ids []string NodeParser[T] // Info present just after node processing. Graph *graph.Graph[T] Entrypoints []*graph.Node[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], ids []string) *DepTree[T]
func (*DepTree[T]) LoadCycles ¶ added in v0.17.4
func (dt *DepTree[T]) LoadCycles()
func (*DepTree[T]) RenderStructured ¶
func (*DepTree[T]) WithStdErrLoader ¶ added in v0.19.0
type NodeParser ¶
type NodeParserBuilder ¶ added in v0.13.5
type NodeParserBuilder[T any] func([]string) (NodeParser[T], error)
type StructuredTree ¶
Click to show internal directories.
Click to hide internal directories.