jq

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat struct {
	CompilerTime      time.Duration `json:"compiler_time"`
	SerializationTime time.Duration `json:"serialization_time"`
	ExecutionTime     time.Duration `json:"execution"`
	Runs              int           `json:"runs"`
	Transformed       int           `json:"transformed"`
}

type Transformer

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

func NewTransformer

func NewTransformer(query string, vars map[string]any) (*Transformer, error)

func (*Transformer) Stats

func (t *Transformer) Stats() Stat

func (*Transformer) Transform

func (t *Transformer) Transform(ctx context.Context, data interface{}, vars map[string]any) (interface{}, error)

Jump to

Keyboard shortcuts

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