Documentation ¶
Index ¶
- type ColumnDef
- type Content
- type Contents
- type DefaultFormatter
- type Formatter
- type Option
- type Output
- func NewDiscardOutput() Output
- func NewFreeOutput(out io.Writer, err io.Writer, option Option) Output
- func NewIDOutput(out io.Writer, err io.Writer) Output
- func NewJSONOutput(out io.Writer, err io.Writer, noColor bool, query string, driver string) Output
- func NewTableOutput(out io.Writer, err io.Writer, columnDefs []ColumnDef) Output
- func NewYAMLOutput(out io.Writer, err io.Writer) Output
- type SimpleTableWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultFormatter ¶
type DefaultFormatter struct{}
func (*DefaultFormatter) ColumnDefs ¶
func (f *DefaultFormatter) ColumnDefs() []ColumnDef
func (*DefaultFormatter) ExcludeFields ¶
func (f *DefaultFormatter) ExcludeFields() []string
func (*DefaultFormatter) IncludeFields ¶
func (f *DefaultFormatter) IncludeFields() []string
type Output ¶
func NewDiscardOutput ¶
func NewDiscardOutput() Output
func NewJSONOutput ¶
func NewTableOutput ¶
type SimpleTableWriter ¶
type SimpleTableWriter struct {
// contains filtered or unexported fields
}
SimpleTableWriter is write table that output one line for each value
func NewSimpleTableWriter ¶
func NewSimpleTableWriter(out io.Writer, columnDefs []ColumnDef) *SimpleTableWriter
Click to show internal directories.
Click to hide internal directories.