Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Block = Style{ T: StyleRow{B: "▛▀", M: "▀", I: "▀▀▀", E: "▀▜"}, M: StyleRow{B: "▌ ", M: " ", I: " ┃ ", E: " ▐"}, S: StyleRow{B: "▌━", M: "━", I: "━╋━", E: "━▐"}, L: StyleRow{B: "▙▄", M: "▄", I: "▄▄▄", E: "▄▟"}, B: StyleSep{B: "▌■", M: "■", U: "■", I: "■", L: "■", E: "■▐"}, }
Block is a slim border with a double lined horizantal borders.
var Bold = Style{ T: StyleRow{B: "┏━", M: "━", I: "━┳━", E: "━┓"}, M: StyleRow{B: "┃ ", M: " ", I: " ┃ ", E: " ┃"}, S: StyleRow{B: "┣━", M: "━", I: "━╋━", E: "━┫"}, L: StyleRow{B: "┗━", M: "━", I: "━┻━", E: "━┛"}, B: StyleSep{B: "┣━", M: "━", U: "┻", I: "╋", L: "┳", E: "━┫"}, }
Bold is a thin bordered table.
var Clear = Style{ T: StyleRow{B: " ", M: " ", I: " ", E: ""}, M: StyleRow{B: " ", M: " ", I: " ", E: ""}, S: StyleRow{B: " ", M: " ", I: " ", E: ""}, L: StyleRow{B: " ", M: " ", I: " ", E: ""}, B: StyleSep{B: "", M: "", U: "", I: "", L: "", E: ""}, }
Clear is a thin bordered table.
var HStrong = Style{ T: StyleRow{B: "╒═", M: "═", I: "═╤═", E: "═╕"}, M: StyleRow{B: "│ ", M: " ", I: " │ ", E: " │"}, S: StyleRow{B: "╞═", M: "═", I: "═╪═", E: "═╡"}, L: StyleRow{B: "╘═", M: "═", I: "═╧═", E: "═╛"}, B: StyleSep{B: "╞═", M: "═", U: "╧", I: "╪", L: "╤", E: "═╡"}, }
StrongHorizantal is a slim border with a double lined horizantal borders.
var Markdown = Style{ T: StyleRow{B: " ", M: " ", I: " ", E: " "}, M: StyleRow{B: "| ", M: " ", I: " | ", E: " |"}, S: StyleRow{B: "|:", M: "-", I: ":|:", E: ":|"}, L: StyleRow{B: " ", M: " ", I: " ", E: " "}, B: StyleSep{B: "", M: "", U: "", I: "", L: "", E: ""}, }
Markdown is a thin bordered table.
var Normal = Style{ T: StyleRow{B: "┌─", M: "─", I: "─┬─", E: "─┐"}, M: StyleRow{B: "│ ", M: " ", I: " │ ", E: " │"}, S: StyleRow{B: "├─", M: "─", I: "─┼─", E: "─┤"}, L: StyleRow{B: "└─", M: "─", I: "─┴─", E: "─┘"}, B: StyleSep{B: "├─", M: "─", U: "┴", I: "┼", L: "┬", E: "─┤"}, }
Normal is a thin bordered table.
var Soft = Style{ T: StyleRow{B: "╭─", M: "─", I: "─┬─", E: "─╮"}, M: StyleRow{B: "│ ", M: " ", I: " │ ", E: " │"}, S: StyleRow{B: "├─", M: "─", I: "─┼─", E: "─┤"}, L: StyleRow{B: "╰─", M: "─", I: "─┴─", E: "─╯"}, B: StyleSep{B: "╞═", M: "═", U: "╧", I: "╪", L: "╤", E: "═╡"}, }
Soft is a thin bordered table.
var Strong = Style{ T: StyleRow{B: "╔═", M: "═", I: "═╦═", E: "═╗"}, M: StyleRow{B: "║ ", M: " ", I: " ║ ", E: " ║"}, S: StyleRow{B: "╠═", M: "═", I: "═╬═", E: "═╣"}, L: StyleRow{B: "╚═", M: "═", I: "═╩═", E: "═╝"}, B: StyleSep{B: "╠═", M: "═", U: "╩", I: "╬", L: "╦", E: "═╣"}, }
Strong is a double lined table.
var VStrong = Style{ T: StyleRow{B: "╓─", M: "─", I: "─╥─", E: "─╖"}, M: StyleRow{B: "║ ", M: " ", I: " ║ ", E: " ║"}, S: StyleRow{B: "╟─", M: "─", I: "─╫─", E: "─╢"}, L: StyleRow{B: "╙─", M: "─", I: "─╨─", E: "─╜"}, B: StyleSep{B: "╟─", M: "─", U: "╨", I: "╫", L: "╥", E: "─╢"}, }
StrongVertical is a slim border with a double lined vertical borders.
Functions ¶
Types ¶
type Style ¶
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 │▒ ╞═╤══╩══╤═══════════╡▒ │ ├──┬──┤ │▒ │ └──┴──┘ │▒ └───────────────────┘▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒