tree

package
v1.18.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const PathMatchAll = "*"

PathMatchAll is a token used as part of a Path to match any key at that level in the nested structure

View Source
const PathMatchList = "[]"

PathMatchList is a token used as part of a Path to match items in a list

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path string

Path is a dotted path of keys to a value in a nested mapping structure. A * section in a path will match any key in the mapping structure.

func NewPath

func NewPath(items ...string) Path

NewPath returns a new Path

func (Path) Matches

func (p Path) Matches(pattern Path) bool

func (Path) Next

func (p Path) Next(part string) Path

Next returns a new path by append part to the current path

func (Path) Parts

func (p Path) Parts() []string

Jump to

Keyboard shortcuts

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