treeview

package
v1.3.7-beta7 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

Node 表示树节点结构

type TreeView

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

TreeView 表示树形视图结构

func NewTreeView

func NewTreeView(paths []string) *TreeView

NewTreeView 创建新的树形视图实例

func NewTreeViewFromString

func NewTreeViewFromString(pathsStr string) *TreeView

NewTreeViewFromString 从字符串创建树形视图实例

func (*TreeView) Count

func (tv *TreeView) Count() (files, dirs int)

Count 返回文件和目录的数量

func (*TreeView) Print

func (tv *TreeView) Print() string

Print 打印树形结构

func (*TreeView) Search

func (tv *TreeView) Search(pattern string) []string

Search 搜索包含指定模式的路径

Jump to

Keyboard shortcuts

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