Documentation ¶ Overview ¶ Package jq facilitates processing of JSON strings using jq expressions. Index ¶ func Evaluate(r io.Reader, w io.Writer, opts Options) error type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Evaluate ¶ func Evaluate(r io.Reader, w io.Writer, opts Options) error Evaluate runs a jq expression against the JSON in r and writes the results to w. Scalar results are written as raw strings (no quotes); objects and arrays are marshalled as JSON, optionally with indentation and color. Types ¶ type Options ¶ type Options struct { Expr string Indent string Colorize bool } Options controls how Evaluate formats its output. Source Files ¶ View all Source files jq.go Click to show internal directories. Click to hide internal directories.