Documentation ¶
Index ¶
- func IsJQQuery(query string) bool
- func ParseBool(jqQuery string, obj interface{}) (bool, error)
- func ParseFloat(jqQuery string, obj interface{}) (float64, error)
- func ParseMapInterface(jqQuery string, obj interface{}) (map[string]interface{}, error)
- func ParseMapStrings(keyToJQQueries map[string][]string, obj interface{}) (map[string][]string, error)
- func ParseString(jqQuery string, obj interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsJQQuery ¶ added in v1.0.6
IsJQQuery checks if a given string is a valid jq query. It attempts to compile the string as a jq expression and returns true if successful.
func ParseFloat ¶ added in v1.0.6
ParseFloat runs a jq query on a given object and returns the result as a float64.
func ParseMapInterface ¶
ParseMapInterface runs a jq query on a given object and returns the result as a map[string]interface{}.
func ParseMapStrings ¶
func ParseMapStrings(keyToJQQueries map[string][]string, obj interface{}) (map[string][]string, error)
ParseMapStrings runs a jq query on a given object and returns the result as a map[string][]string.
func ParseString ¶
ParseString runs a jq query on a given object and returns the result as a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.