yamlpathutils

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustPath

func MustPath(path *yamlpath.Path, err error) *yamlpath.Path

MustPath ensures that a path is valid and if it is invalid panics

func PathToFirstLineNumber added in v1.1.0

func PathToFirstLineNumber(node *yaml.Node, path *yamlpath.Path) int

PathToFirstLineNumber runs the path on the given node and returns the first line number that resolved from the query

func PathToLineNumbers added in v1.1.0

func PathToLineNumbers(node *yaml.Node, path *yamlpath.Path) []int

PathToLineNumbers runs the path on the given node and returns all node line numbers that resolved from the query

Types

This section is empty.

Jump to

Keyboard shortcuts

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