textquery

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleQueryResult added in v0.5.8

func HandleQueryResult(
	result []interface{},
	marshalFunc func(in interface{}) ([]byte, error),
) string

func JQ

func JQ(query, data string) (string, error)

func JQBytes

func JQBytes(query string, input []byte) (string, error)

func Query added in v0.5.8

func Query(
	query string,
	input []byte,
	unmarshalFunc func([]byte, interface{}) error,
	marshalFunc func(in interface{}) ([]byte, error),
) (string, error)

func RunQuery

func RunQuery(
	query *gojq.Query,
	data interface{},
	kvPairs map[string]interface{},
) ([]interface{}, bool, error)

func YQ added in v0.5.8

func YQ(query, data string) (string, error)

func YQBytes added in v0.5.8

func YQBytes(query string, input []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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