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 Query(query string, input []byte, unmarshalFunc func([]byte, interface{}) error, ...) (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 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)
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.