pathtree

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 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 Node

type Node struct {
	Children map[string]*Node
}

func (*Node) Walk

func (n *Node) Walk(curPath string, walkFunc WalkFunc, delimiter string) error

type Tree

type Tree struct {
	Root     *Node
	RootPath string
	// contains filtered or unexported fields
}

func NewTree

func NewTree(path string, delimiter string) *Tree

func (*Tree) Add

func (t *Tree) Add(path string)

func (*Tree) Walk

func (t *Tree) Walk(walkFunc WalkFunc) error

type WalkFunc

type WalkFunc func(path string, numChildren int) error

Jump to

Keyboard shortcuts

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