jq

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Libpath string
}

func NewFilter

func NewFilter(libpath string) *Filter

func (*Filter) ApplyFilter

func (f *Filter) ApplyFilter(jqFilter string, jsonData []byte) (string, error)

ApplyJqFilter runs jq expression provided in jqFilter with jsonData as input.

It uses jq as a subprocess.

func (*Filter) FilterInfo

func (f *Filter) FilterInfo() string

Jump to

Keyboard shortcuts

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