package tree
import "github.com/compose-spec/compose-go/tree"
Index ¶
Constants ¶
const PathMatchAll = "*"
PathMatchAll is a token used as part of a Path to match any key at that level in the nested structure
const PathMatchList = "[]"
PathMatchList is a token used as part of a Path to match items in a list
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 ¶
NewPath returns a new Path
func (Path) Matches ¶
func (Path) Next ¶
Next returns a new path by append part to the current path
func (Path) Parts ¶
Source Files ¶
- Version
- v1.20.2 (latest)
- Published
- Nov 21, 2023
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 20 hours ago –
Tools for package owners.