util

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeToString

func NodeToString[Blackboard any](node core.Node[Blackboard]) string

NodeToString returns a string representation of a tree node and all its children.

func PrintTreeInColor

func PrintTreeInColor[Blackboard any](node core.Walkable[Blackboard])

PrintTreeInColor prints the tree with colors representing node state.

Red = Failure, Yellow = Running, Green = Success, Magenta = Invalid.

func PrintTreeToLog

func PrintTreeToLog[Blackboard any](node core.Walkable[Blackboard])

Logs the tree to a logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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