Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // StyleMarkdown uses ASCII characters. StyleMarkdown = &Style{ Border: &Border{ Top: "-", Left: "|", Right: "|", Bottom: "-", TopLeft: "+", TopRight: "+", BottomLeft: "+", BottomRight: "+", TopIntersection: "+", BottomIntersection: "+", }, Divider: &Divider{ Left: "+", Right: "+", Intersection: "+", Center: "-", }, Left: "|", Right: "|", CellSplitter: "|", } // StyleRounded uses rounded outer corners. StyleRounded = &Style{ Border: &Border{ Top: "─", Left: "│", Right: "│", Bottom: "─", TopLeft: "╭", TopRight: "╮", BottomLeft: "╰", BottomRight: "╯", TopIntersection: "┬", BottomIntersection: "┴", }, Divider: &Divider{ Left: "├", Right: "┤", Intersection: "┼", Center: "─", }, Left: "│", Right: "│", CellSplitter: "│", } // StyleUnicode uses unicode characters for the table style. StyleUnicode = &Style{ Border: &Border{ Top: "═", Left: "║", Right: "║", Bottom: "═", TopLeft: "╔", TopRight: "╗", BottomLeft: "╚", BottomRight: "╝", TopIntersection: "╤", BottomIntersection: "╧", }, Divider: &Divider{ Left: "╟", Right: "╢", Intersection: "┼", Center: "━", }, Left: "║", Right: "║", CellSplitter: "│", } // StyleMinimal has no outer borders. StyleMinimal = &Style{ Border: nil, Divider: &Divider{ Left: "", Right: "", Intersection: " ", Center: "-", }, Left: "", Right: "", CellSplitter: " ", } )
Functions ¶
This section is empty.
Types ¶
type Border ¶
type Border struct {
Top string
Left string
Right string
Bottom string
TopLeft string
TopRight string
BottomLeft string
BottomRight string
TopIntersection string
BottomIntersection string
}
Border defines the characters used for the borders of the table.
Click to show internal directories.
Click to hide internal directories.