tree

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidFormat = errors.New("expected (<collection>/<id>)+")
)

Functions

This section is empty.

Types

type Parent

type Parent[T any] struct {
	Parent *Parent[T]
	Name   string
	Value  T
}

type Tree

type Tree[T any] struct {
	// contains filtered or unexported fields
}

func (*Tree[T]) Add

func (t *Tree[T]) Add(path string, value T) error

func (*Tree[T]) Walk

func (t *Tree[T]) Walk(f WalkFunc[T])

type WalkFunc

type WalkFunc[T any] func(parent *Parent[T], name string, value T)

Jump to

Keyboard shortcuts

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