Documentation
ΒΆ
Index ΒΆ
Constants ΒΆ
View Source
const ( // StripColours Removes ANSI color codes from output text StripColours uint = 1 << iota // AlignMiddle centers the text horizontally in the column AlignMiddle // AlignRight shifts each cell content to the right AlignRight // RemoveLeastPad removes the minimum padding bytes used to separate text from nearby columns. RemoveLeastPad // PreserveLongFields disables the logic used to truncate long strings in the table. // This flag disables padding completely PreserveLongFields // AsciiTable allows using only ASCII divider. // Useful for environments that do not support utf-8 encodings AsciiTable )
Variables ΒΆ
This section is empty.
Functions ΒΆ
This section is empty.
Types ΒΆ
type Writer ΒΆ
type Writer struct {
// contains filtered or unexported fields
}
Writer the io.Writer struct used to process and format received text in order to create nice looking tables and style them according to the specified flags
func NewWriter ΒΆ
NewWriter allocates and initializes a new Writer. The parameters are the same as for the init function.
func (*Writer) Clear ΒΆ
func (w *Writer) Clear()
Clear resets the state of the Writer to remove any traces of previously flushed content
Click to show internal directories.
Click to hide internal directories.