Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintCodeBlock ¶
PrintCodeBlock prints the given content inside a styled code block
TODO: at the moment of writing, television couldn't correctly render box-drawing characters, so use +, | and - for now. Once there is a fix, change the lines to those below:
topBorder := "┌" + strings.Repeat("─", lineWidth-2) + "┐" bottomBorder := "└" + strings.Repeat("─", lineWidth-2) + "┘" leftBorder := "│ " rightBorder := " │"
func StyleLongDescription ¶
func StyleLongDescription(styler TextStyler, text string) string
Types ¶
type TextStyler ¶
type TextStyler uint8
const (
StyledText TextStyler = 1 << iota
)
func (TextStyler) Bold ¶
func (s TextStyler) Bold(text string) string
func (TextStyler) Dim ¶
func (s TextStyler) Dim(text string) string
func (TextStyler) Strikethrough ¶
func (s TextStyler) Strikethrough(text string) string
func (TextStyler) Underline ¶
func (s TextStyler) Underline(text string) string
Click to show internal directories.
Click to hide internal directories.