Documentation
¶
Index ¶
- type Span
- type Text
- func (text *Text) Append(t *Text) *Text
- func (text *Text) Bold(content string) *Text
- func (text *Text) BoldOblique(content string) *Text
- func (text *Text) BoldObliquef(format string, a ...interface{}) *Text
- func (text *Text) Boldf(format string, a ...interface{}) *Text
- func (text *Text) HTML() string
- func (text *Text) Link(url string, link *Text) *Text
- func (text *Text) Oblique(content string) *Text
- func (text *Text) Obliquef(format string, a ...interface{}) *Text
- func (text *Text) Plain(content string) *Text
- func (text *Text) Plainf(format string, a ...interface{}) *Text
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Text ¶
type Text struct {
Spans []Span
}
Text represents a text as a collection of formatted spans with optional formatting information.
func (*Text) BoldOblique ¶
BoldOblique appends a bold oblique text span to the text object.
func (*Text) BoldObliquef ¶
BoldObliquef appends a bold oblique text span to the text object.
Click to show internal directories.
Click to hide internal directories.