Versions in this module Expand all Collapse all v1 v1.0.21 Sep 3, 2026 Changes in this version + func ApplyQuery(data interface{}, expr string) (interface{}, error) + func EncodeJSON(data interface{}) ([]byte, error) + func Write(w io.Writer, format Format, data interface{}) error + func WriteWithOptions(w io.Writer, format Format, data interface{}, opts Options) error + type Format string + const FormatJSON + const FormatOff + const FormatTable + const FormatTableNum + const FormatText + const FormatYAML + func ParseFormat(s string) (Format, error) + type Options struct + Color bool + Columns []string + TerminalWidth int + type Query struct + func CompileQuery(expr string) (*Query, error) + func (q *Query) Columns() []string + func (q *Query) Search(data interface{}) (result interface{}, err error) + type QueryError struct + Err error + Expression string + Offset int + func (e *QueryError) Error() string + func (e *QueryError) Unwrap() error