Versions in this module Expand all Collapse all v3 v3.12.0 Jun 12, 2023 Changes in this version + var ErrInvalidFormatType = fmt.Errorf("invalid format type") + func EncodeJSON(out io.Writer, obj interface{}) error + func EncodeTable(out io.Writer, table *uitable.Table) error + func EncodeYAML(out io.Writer, obj interface{}) error + func Formats() []string + func FormatsWithDesc() map[string]string + type Format string + const JSON + const Table + const YAML + func ParseFormat(s string) (out Format, err error) + func (o Format) String() string + func (o Format) Write(out io.Writer, w Writer) error + type Writer interface + WriteJSON func(out io.Writer) error + WriteTable func(out io.Writer) error + WriteYAML func(out io.Writer) error