tree

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const IndentSize = 3

IndentSize is the number of spaces per tree level.

Variables

This section is empty.

Functions

func New

func New() tree

New Generates new tree

func NewWithExtraInfoRoot added in v0.5.0

func NewWithExtraInfoRoot(prefix, postfix, root string) tree

func NewWithRoot

func NewWithRoot(root value) tree

NewWithRoot Generates new tree with the given root value

Types

type EdgeType

type EdgeType string
const (
	EdgeTypeLink EdgeType = "│"
	EdgeTypeMid  EdgeType = "├──"
	EdgeTypeEnd  EdgeType = "└──"
)

type Tree

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

func NewTreeString

func NewTreeString(entry string, depthLimit int, typeFilter *filter.ItemFilter, contentFilter *filter.ContentFilter) (t *Tree, serious error, minor error)

func (*Tree) Directory

func (n *Tree) Directory() uint32

func (*Tree) File

func (n *Tree) File() uint32

func (*Tree) MakeTreeStr

func (n *Tree) MakeTreeStr() string

Jump to

Keyboard shortcuts

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