Documentation ¶
Index ¶
- func FTable(w io.Writer, rows [][]string)
- func Plural[T any](items []T, singular string, plural string) string
- func QuotedTerms(terms []string) []string
- func Render(styleSheet StyleSheet, class string, text string) string
- func StyleFunc(styleSheet StyleSheet) func(class string, text string) string
- func WriteHeader(w io.Writer, format string, a ...any) error
- type StyleRenderer
- type StyleRule
- type StyleSheet
- type Tux
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QuotedTerms ¶
QuotedTerms will wrap each term in single-quotation marks
Types ¶
type StyleRenderer ¶
type StyleRule ¶
type StyleRule struct { Bold bool Italic bool Underline bool Strikethrough bool Blink bool Faint bool Foreground string ForegroundInverted string Background string BackgroundInverted string PaddingTop int PaddingRight int PaddingBottom int PaddingLeft int MarginTop int MarginRight int MarginBottom int MarginLeft int }
type Tux ¶
type Tux struct {
// contains filtered or unexported fields
}
func (*Tux) MustPrintErr ¶
func (*Tux) SetStyleSheet ¶
func (tux *Tux) SetStyleSheet(styleSheet StyleSheet)
Click to show internal directories.
Click to hide internal directories.