Documentation
¶
Index ¶
- type Marshaller
- type TableOpt
- func OptDelimiter(v rune) TableOpt
- func OptHeader() TableOpt
- func OptNull(v string) TableOpt
- func OptOutputCSV() TableOpt
- func OptOutputTSV() TableOpt
- func OptOutputText() TableOpt
- func OptTableWidth(v int) TableOpt
- func OptTerminalWidth(w io.Writer) TableOpt
- func OptTimeLayout(v string, local bool) TableOpt
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Marshaller ¶
type TableOpt ¶
type TableOpt func(*options) error
TableOpt is a function which can be used to set options on a table
func OptDelimiter ¶ added in v0.0.6
Set the delimiter between fields, if not set with OptOutput...
func OptHeader ¶
func OptHeader() TableOpt
Set the struct field tag which is used to set table options, default is "json"
func OptTableWidth ¶ added in v0.0.6
Set the suggested width of the table, including delimiters
func OptTerminalWidth ¶ added in v0.0.6
Set the suggested width of the table, including delimiters from the terminal width if the terminal width is not available, the width is ignored
func OptTimeLayout ¶ added in v0.0.4
Set how time values are formatted in the output
type Writer ¶ added in v0.0.4
type Writer struct {
// contains filtered or unexported fields
}
A writer object which can write table data to an io.Writer
Click to show internal directories.
Click to hide internal directories.