pathutil

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PATHTREE_TYPE_PATHS   = 1
	PATHTREE_TYPE_VALUES  = 2
	PATHTREE_TYPE_ENTRIES = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ENTRY

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

func NewENTRY

func NewENTRY() *ENTRY

func (*ENTRY) Include

func (this *ENTRY) Include(v string) bool

func (*ENTRY) Node

func (this *ENTRY) Node() string

func (*ENTRY) Path

func (this *ENTRY) Path(top *ENTRY) []string

func (*ENTRY) Value

func (this *ENTRY) Value() interface{}

type PATH

type PATH struct {
	Nodes []string
	Level int
}

func NewPATH

func NewPATH(nodes []string) *PATH

func (*PATH) HasChild

func (this *PATH) HasChild() bool

func (*PATH) Node

func (this *PATH) Node() string

type PathTree

type PathTree struct {
	Top *ENTRY
	// contains filtered or unexported fields
}

func NewPathTree

func NewPathTree() *PathTree

func (*PathTree) Entries

func (this *PathTree) Entries() PathTreeEnumeration

func (*PathTree) Find

func (this *PathTree) Find(path string) interface{}

func (*PathTree) FindArray

func (this *PathTree) FindArray(path []string) interface{}

func (*PathTree) Insert

func (this *PathTree) Insert(path string, value interface{}) interface{}

func (*PathTree) InsertArray

func (this *PathTree) InsertArray(paths []string, value interface{}) interface{}

func (*PathTree) Paths

func (this *PathTree) Paths() PathTreeEnumeration

func (*PathTree) Size

func (this *PathTree) Size() int

func (*PathTree) Values

func (this *PathTree) Values() PathTreeEnumeration

type PathTreeEnumer

type PathTreeEnumer struct {
	Type int
	// contains filtered or unexported fields
}

func NewPathTreeEnumer

func NewPathTreeEnumer(Type int) *PathTreeEnumer

func (*PathTreeEnumer) HasMoreElements

func (this *PathTreeEnumer) HasMoreElements() bool

func (*PathTreeEnumer) NextElement

func (this *PathTreeEnumer) NextElement(top *ENTRY) interface{}

type PathTreeEnumeration

type PathTreeEnumeration interface {
	HasMoreElements() bool
	NextElement(top *ENTRY) interface{}
}

Jump to

Keyboard shortcuts

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