Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJSONFormatter ¶
func NewJSONFormatter() jsonFormatter
NewJSONFormatter formats output into json
func NewTableFormatter ¶
func NewTableFormatter() tableFormatter
NewTableFormatter returns a table formatter
Types ¶
type Formatter ¶
type Formatter interface {
// Format will call the getter func and render the returned data
Format(getter func() interface{}) (string, error)
}
Formatter formats data
type TableContents ¶
type TableContents struct {
Headers []string
Data [][]string
}
TableContents represents the contents of a table
Click to show internal directories.
Click to hide internal directories.