tree

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package gotree create and print tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	Text(tree Tree) string
}

type Printer

type Printer interface {
	Print(Tree) string
}

Printer is printer interface

type Tree

type Tree interface {
	Add(node Node) Tree
	AddTree(tree Tree)
	Node() Node
	Items() []Tree
	Text() string
	Print() string
}

Tree is tree interface

func New

func New(node Node) Tree

New returns a new tree.Tree

Jump to

Keyboard shortcuts

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