Documentation ¶
Overview ¶
Package rich implements rich text data types
Package rich implements rich text data types
Index ¶
- type Attr
- type Attrs
- type Text
- func (t *Text) Apply(ctx changes.Context, c changes.Change) changes.Value
- func (t *Text) ApplyCollection(ctx changes.Context, c changes.Change) changes.Collection
- func (t *Text) Concat(o *Text) *Text
- func (t *Text) Count() int
- func (t *Text) PlainText() string
- func (t *Text) RemoveAttribute(offset, count int, name string) changes.Change
- func (t *Text) SetAttribute(offset, count int, attr Attr) changes.Change
- func (t *Text) Slice(offset, count int) changes.Collection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attrs ¶
Attrs is a collection of attribute name value pairs
type Text ¶
type Text []attrText
Text represents a rich text
func (*Text) ApplyCollection ¶
ApplyCollection implements changes.Collection
func (*Text) RemoveAttribute ¶
RemoveAttribute returns a change which when applied would remove the named attributes in the range [offset, offset+count]
func (*Text) SetAttribute ¶
SetAttribute returns a change which when applied would set all the attributes in the range [offset, offset+count] to the provided value.
Directories ¶
Path | Synopsis |
---|---|
Package data impleements data structures for use with rich text
|
Package data impleements data structures for use with rich text |
Package eval implements evaluated objects Package eval implements evaluated objects Package eval implements expression values that can be evaluated Expression syntax The language used by eval is a very simple infix expression.
|
Package eval implements evaluated objects Package eval implements evaluated objects Package eval implements expression values that can be evaluated Expression syntax The language used by eval is a very simple infix expression. |
Package html implements rich text to HTML conversion
|
Package html implements rich text to HTML conversion |
Click to show internal directories.
Click to hide internal directories.