tree

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TreeNode

type TreeNode struct {
	Name     string
	IsDir    bool
	Children []*TreeNode
}

func NewTreeNode

func NewTreeNode(name string, isDir bool) *TreeNode

func ParseTree

func ParseTree(treeText string) *TreeNode

testdir/ ├── dir1/ │ ├── file1.go │ └── dir2/ │ ├── file1.go │ └── file2.go └── FILE3.md

func (*TreeNode) AddChild

func (t *TreeNode) AddChild(child *TreeNode)

func (*TreeNode) PrintTree

func (t *TreeNode) PrintTree(prefix string)

Jump to

Keyboard shortcuts

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