evaluator

package
v0.1.66 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 3 Imported by: 0

README

Evaluates JSON path expressions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(expression string) (interface{}, error)
var DefaultCallback Callback = func(expression string) (interface{}, error) {
	return nil, fmt.Errorf("not implemented")
}

type Evaluator

type Evaluator struct {
	// contains filtered or unexported fields
}

func NewEvaluator

func NewEvaluator(callback Callback) *Evaluator

func (*Evaluator) Eval

func (c *Evaluator) Eval(data []byte) (interface{}, error)

Jump to

Keyboard shortcuts

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