sharedTree

package
v0.0.0-...-8c873f1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tree

type Tree struct {
	// contains filtered or unexported fields
}

Tree represents the tree management process itself. Send items to Tree.Add; send formatting requests to Format; send true to Tree.Quit to stop the process.

func New

func New() *Tree

New creates a new tree.

func (*Tree) AddAt

func (t *Tree) AddAt(point *gotree.Tree, s string) *gotree.Tree

AddAt inserts a new item at the specified insert point and returns the new item as an insert point. This allows us to build trees downward from the root.

func (*Tree) Format

func (t *Tree) Format() string

Format returns a formatted version of the tree, using gotree's Print().

func (*Tree) Quit

func (t *Tree) Quit()

Quit stops the process.

func (*Tree) Run

func (t *Tree) Run()

Run runs the tree. We wait for work on our work queue, execute it, and wait for more work

Jump to

Keyboard shortcuts

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