Documentation ¶ Index ¶ func ApplyJQ(data any, expr string) (any, error) func CSV(w io.Writer, data any) error func JSON(w io.Writer, data any) error func Render(w io.Writer, format Format, data any) error type Format Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ApplyJQ ¶ func ApplyJQ(data any, expr string) (any, error) ApplyJQ runs a jq expression against data and returns the result. If the expression produces a single value, it is returned unwrapped. Multiple values are collected into a slice. func CSV ¶ func CSV(w io.Writer, data any) error func JSON ¶ func JSON(w io.Writer, data any) error func Render ¶ func Render(w io.Writer, format Format, data any) error Types ¶ type Format ¶ type Format string const ( FormatJSON Format = "json" FormatCSV Format = "csv" ) Source Files ¶ View all Source files jq.gooutput.go Click to show internal directories. Click to hide internal directories.