Categorygithub.com/vmware-labs/yaml-jsonpointer
modulepackage
0.1.1
Repository: https://github.com/vmware-labs/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. Before you start working with yaml-jsonpointer, please read our Developer Certificate of Origin. All contributions to this repository must be signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on as an open-source patch. For more detailed information, refer to CONTRIBUTING.md.

License

yaml-jsonpointer is available under the BSD-2 license.

# Functions

Find is like FindAll but returns ErrTooManyResults if multiple matches are located.
FindAll 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).