Documentation
¶
Index ¶
- func HandleQueryResult(result []interface{}, marshalFunc func(in interface{}) ([]byte, error)) string
- func JQ(query, data string) (string, error)
- func JQBytes(query string, dataBytes []byte) (string, error)
- func NewJSONIterator(r io.Reader) func() (interface{}, bool)
- func NewYAMLIterator(r io.Reader) func() (interface{}, bool)
- func Query(query string, generatNext func() (interface{}, bool), ...) (string, error)
- func RunQuery(query *gojq.Query, data interface{}, kvPairs map[string]interface{}) ([]interface{}, bool, error)
- func YQ(query, data string) (string, error)
- func YQBytes(query string, dataBytes []byte) (string, error)
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
HandleQueryResult from RunQuery
func NewJSONIterator ¶ added in v0.6.4
func NewYAMLIterator ¶ added in v0.6.4
func Query ¶ added in v0.5.8
func Query( query string, generatNext func() (interface{}, bool), marshalFunc func(in interface{}) ([]byte, error), ) (string, error)
Query runs jq query over general text data bytes with custom marshaling/unmarshaling func for data serialization/deserialization
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.