Documentation
¶
Index ¶
- Constants
- func BytesFormatter(n *jnode.Node) string
- func DurationMillisFormatter(n *jnode.Node) string
- func Nav(n *jnode.Node, path []string) *jnode.Node
- func NumberFormatter(n *jnode.Node) string
- func ParseTime(s string) (time.Time, error)
- func RelativeTimestampFormatter(n *jnode.Node) string
- func TimestampFormatter(n *jnode.Node) string
- func ToResult(value interface{}) (*jnode.Node, error)
- type CSVPrinter
- type ColumnFunction
- type CountPrinter
- type DiffPrinter
- type Filter
- type Formatter
- type Formatters
- type Interface
- type JSONPrinter
- type NonePrinter
- type PathSupport
- type TablePrinter
- type TemplatePrinter
- type ValuePrinter
- type VerticalPrinter
- type YAMLPrinter
Constants ¶
View Source
const ( RFC3339Millis = "2006-01-02T15:04:05.000Z07:00" GODefaultFormat = "2006-01-02 15:04:05.999999999 -0700 MST" )
Variables ¶
This section is empty.
Functions ¶
func BytesFormatter ¶ added in v0.4.12
func DurationMillisFormatter ¶ added in v0.4.14
func NumberFormatter ¶ added in v0.4.14
func TimestampFormatter ¶
Types ¶
type CSVPrinter ¶
type CSVPrinter struct {
PathSupport
NoHeaders bool
Columns []string
Formatters Formatters
}
func (*CSVPrinter) PrintResult ¶
type ColumnFunction ¶ added in v0.4.17
type CountPrinter ¶ added in v0.5.7
type CountPrinter struct {
PathSupport
}
func (*CountPrinter) PrintResult ¶ added in v0.5.7
type DiffPrinter ¶ added in v0.4.14
type DiffPrinter struct {
PathSupport
DiffColumn string
VersionColumn string
LabelColumns []string
Context int
Formatters
}
func (*DiffPrinter) PrintResult ¶ added in v0.4.14
type Formatters ¶
type NonePrinter ¶ added in v0.4.9
type NonePrinter struct{}
func (*NonePrinter) PrintResult ¶ added in v0.4.9
type PathSupport ¶ added in v0.4.8
type TablePrinter ¶
type TablePrinter struct {
PathSupport
NoHeaders bool
Columns []string
Formatters Formatters
}
func (*TablePrinter) PrintHeader ¶
func (p *TablePrinter) PrintHeader(w io.Writer)
func (*TablePrinter) PrintResult ¶
type TemplatePrinter ¶ added in v0.4.58
type TemplatePrinter struct {
Template string
}
func NewTemplatePrinter ¶ added in v0.5.34
func NewTemplatePrinter(template string) (*TemplatePrinter, error)
func (*TemplatePrinter) PrintResult ¶ added in v0.4.58
type ValuePrinter ¶ added in v0.4.8
type ValuePrinter struct {
PathSupport
Format string
}
func (*ValuePrinter) PrintResult ¶ added in v0.4.8
type VerticalPrinter ¶ added in v0.4.14
type VerticalPrinter struct {
PathSupport
Columns []string
Formatters
}
func (*VerticalPrinter) PrintResult ¶ added in v0.4.14
Click to show internal directories.
Click to hide internal directories.