Categorygithub.com/zachelrath/yaml-jsonpointer
modulepackage
0.2.0
Repository: https://github.com/zachelrath/yaml-jsonpointer.git
Documentation: pkg.go.dev

# README

Go Report Card

yaml-jsonpointer

Package yptr is a Go package with a JSONPointer implementation that can walk though a yaml.Node tree.

Documentation

Read full doc on the Go package documentation page.

Contributing

The yaml-jsonpointer project team welcomes contributions from the community. For more detailed information, refer to CONTRIBUTING.md.

License

yaml-jsonpointer is available under the MIT license.

# Functions

Find is like FindAll but returns ErrTooManyResults if multiple matches are located.
FindAll finds any locations in the json/yaml tree pointed by root that match the extended JSONPointer passed in ptr.
FindAllStrict finds all locations in the json/yaml tree pointed by root that match the extended JSONPointer passed in ptr.

# Variables

ErrNotFound a pointer failed to find a match.
ErrTooManyResults means a pointer matches too many results (usually more than one expected result).