builder

package
v0.0.93 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: GPL-3.0 Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const DefaultHeight = 25
View Source
const DefaultWidth = 150
View Source
const LeafHeight = 45
View Source
const MaxWidth = 250
View Source
const TextLimit = 20
View Source
const TextSizeBumpIncrement = 5
View Source
const TextWidthSizeBumpIncrement = 10

Variables

This section is empty.

Functions

func BuildGraph

func BuildGraph(obj any) ([]*model.NodeData[any], []*model.EdgeData[any])

func BuildGraphMapNode

func BuildGraphMapNode(parent *model.NodeData[any], field reflect.Value, nodes *[]*model.NodeData[any],
	edges *[]*model.EdgeData[any])

func BuildSliceGraphNode

func BuildSliceGraphNode[T any](parent *model.NodeData[any], field reflect.Value, nodes *[]*model.NodeData[any],
	label string, edges *[]*model.EdgeData[any])

func BuildTree

func BuildTree(obj any) (*model.TreeNode, *model.ChangeStatistics)

func BuildTreeMapNode

func BuildTreeMapNode(parent *model.TreeNode, field reflect.Value)

func BuildTreeMapNodeWithLabel added in v0.0.91

func BuildTreeMapNodeWithLabel(parent *model.TreeNode, field reflect.Value, label string)

BuildTreeMapNodeWithLabel creates a labeled parent node and adds map children under it. Use this for map fields that should appear as a named section (e.g., "Callbacks").

func DigIntoObject

func DigIntoObject[T any](parent *model.NodeData[any], field reflect.Value, nodes *[]*model.NodeData[any],
	label string, edges *[]*model.EdgeData[any])

func DigIntoTreeNode

func DigIntoTreeNode[T any](parent *model.TreeNode, field reflect.Value, label string, tc, br int)

func DigIntoTreeNodeSlice

func DigIntoTreeNodeSlice[T any](parent *model.TreeNode, field reflect.Value, label string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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