rich

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Text

type Text string

Text holds rich-formatted text.

func Icon

func Icon(src string) Text

Icon embeds an icon in the text.

func (Text) Bold

func (text Text) Bold() Text

Bold returns the text formatted bold.

func (Text) HTML

func (text Text) HTML() string

HTML returns the text formatted as HTML.

func (Text) In

func (text Text) In(c color.Color) Text

In returns the text in the given color.

func (Text) Italic

func (text Text) Italic() Text

Italic returns the text formatted as italic.

func (Text) Plain

func (text Text) Plain() bool

Plain returns true if the text has no formatting applied to it.

func (Text) String

func (text Text) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL