Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Clear = Style{ // contains filtered or unexported fields }
Clear is a thin bordered table.
View Source
var HStrong = Style{ // contains filtered or unexported fields }
StrongHorizantal is a slim border with a double lined horizantal borders.
View Source
var Markdown = Style{ // contains filtered or unexported fields }
Markdown is a thin bordered table.
View Source
var Normal = Style{ // contains filtered or unexported fields }
Normal is a thin bordered table.
View Source
var Strong = Style{ // contains filtered or unexported fields }
Strong is a double lined table.
View Source
var VStrong = Style{ // contains filtered or unexported fields }
StrongVertical is a slim border with a double lined vertical borders.
Functions ¶
func PrintClear ¶ added in v0.1.2
func PrintClear(rows interface{})
func PrintHStrong ¶
func PrintHStrong(rows interface{})
func PrintMarkdown ¶ added in v0.1.2
func PrintMarkdown(rows interface{})
func PrintStrong ¶
func PrintStrong(rows interface{})
func PrintVStrong ¶
func PrintVStrong(rows interface{})
func PrintWithStyle ¶
func PrintWithStyle(rows interface{}, s Style)
Types ¶
type Style ¶
type Style struct {
// contains filtered or unexported fields
}
Style represents the table structure in 4 strings. 't' for top. 'm' for middle. 's' for seperator. 'b' for bottom. ┌─┬┐ ╔═╦╗ ╓─╥╖ ╒═╤╕ │ ││ ║ ║║ ║ ║║ │ ││ ├─┼┤ ╠═╬╣ ╟─╫╢ ╞═╪╡ └─┴┘ ╚═╩╝ ╙─╨╜ ╘═╧╛ ┌───────────────────┐ │ ╔═══╗ Some Text │▒ │ ╚═╦═╝ in the box │▒ ╞═╤══╩══╤═══════════╡▒ │ ├──┬──┤ │▒ │ └──┴──┘ │▒ └───────────────────┘▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
Click to show internal directories.
Click to hide internal directories.