Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StyleWithoutGraphics = table.BoxStyle{ BottomLeft: " ", BottomRight: " ", BottomSeparator: " ", EmptySeparator: text.RepeatAndTrim(" ", text.RuneWidthWithoutEscSequences(" ")), Left: " ", LeftSeparator: " ", MiddleHorizontal: " ", MiddleSeparator: " ", MiddleVertical: " ", PaddingLeft: " ", PaddingRight: " ", PageSeparator: "\n", Right: " ", RightSeparator: " ", TopLeft: " ", TopRight: " ", TopSeparator: " ", UnfinishedRow: " ", }
StyleWithoutGraphics defines a style without graphics like below: col1 col2 col3 col4 1 477 Elizabeth 12 3 2804 David 33 4 1161 William 81 5 1172 Jack 35 6 1064 William 25
Functions ¶
Types ¶
type Format ¶
type Format int
Format defines a set of supported output format.
const ( // DefaultFormat is a default format. DefaultFormat Format = YamlFormat )
func ParseFormat ¶
ParseFormat parses a output format string representation. It supports mixed case letters.
type Opts ¶
type Opts struct {
// Graphics sets on/off the output of pseudographic characters.
Graphics bool
// ColumnWidthMax sets is a maximum width of columns.
ColumnWidthMax int
// TableDialect sets a current table dialect.
TableDialect TableDialect
}
Opts contains formatting options.
type TableDialect ¶
type TableDialect int
TableDialect defines a set of supported table dialect.
const ( DefaultTableDialect TableDialect = iota MarkdownTableDialect JiraTableDialect )
func ParseTableDialect ¶
func ParseTableDialect(str string) (TableDialect, bool)
ParseTableDialect parses a table dialect string representation. It supports mixed case letters.
func (TableDialect) String ¶
func (d TableDialect) String() string
String returns a string representation of the table dialect.
Click to show internal directories.
Click to hide internal directories.