Documentation ¶
Overview ¶
Package pathfinder holds utilities for working with JSON path.
Package pathfinder holds utilities for working with different data formats.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicJSONPathFinder ¶
type DynamicJSONPathFinder struct {
// contains filtered or unexported fields
}
DynamicJSONPathFinder is entity that has ability to obtain data from JSON from given expression. Entity knows how to determine whether expression matches https://github.com/pawelWritesCode/qjson or https://github.com/oliveagle/jsonpath syntax
func NewDynamicJSONPathFinder ¶
func NewDynamicJSONPathFinder(qjson QJSONFinder, oliveagleJSONFinder OliveagleJSONFinder) *DynamicJSONPathFinder
type GoccyGoYamlFinder ¶
type GoccyGoYamlFinder struct{}
func NewGoccyGoYamlFinder ¶
func NewGoccyGoYamlFinder() GoccyGoYamlFinder
type OliveagleJSONFinder ¶
type OliveagleJSONFinder struct{}
OliveagleJSONFinder represents implementation of JSON path from https://github.com/oliveagle/jsonpath library
func NewOliveagleJSONFinder ¶
func NewOliveagleJSONFinder() OliveagleJSONFinder
type PathFinder ¶
type PathFinder interface { // Find obtains data from bytes according to given expression Find(expr string, bytes []byte) (interface{}, error) }
PathFinder describes ability to obtain node(s) from data in fixed data format
type QJSONFinder ¶
type QJSONFinder struct{}
QJSONFinder represents implementation of JSON path from https://github.com/pawelWritesCode/qjson library
func NewQJSONFinder ¶
func NewQJSONFinder() QJSONFinder