Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VT ¶
type VT struct {
// contains filtered or unexported fields
}
Vertical Table
Example ¶
vt := NewTable(os.Stdout) buildTables(vt).Render()
Output: ********** 1. foo ********** ID: 123 Select Type: SIMPLE Table: foo ********** 2. bar ********** ID: 456 Select Type: UNIQUE Table: bar
type VTOptions ¶
type VTOptions struct { HeaderFormat string ShowCount bool CountFormat string KvSeparator string KeyAlignRight bool }
Example ¶
vt := NewTable(os.Stdout, &VTOptions{ HeaderFormat: "--- %s", ShowCount: false, KvSeparator: " = ", KeyAlignRight: false, }) buildTables(vt).Render()
Output: --- foo ID = 123 Select Type = SIMPLE Table = foo --- bar ID = 456 Select Type = UNIQUE Table = bar
Click to show internal directories.
Click to hide internal directories.