tree

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2022 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 {
	// contains filtered or unexported fields
}

type Tree

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

func NewTree

func NewTree(paths []string) Tree

func (Tree) ChildItems

func (t Tree) ChildItems(idx int, parentPath string) (items map[string]string)

func (Tree) ChildNames

func (t Tree) ChildNames(idx int, parentPath string) []string

func (Tree) HasChildren

func (t Tree) HasChildren(idx int, parentPath string) bool

func (Tree) LevelCount

func (t Tree) LevelCount() int

func (Tree) LevelItems

func (t Tree) LevelItems(idx int) (items map[string]string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳