attrs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attr

type Attr struct {
	Length uint32
	Props  TextProps
	Stamp  *common.Stamp
}

func (*Attr) Apply

func (l *Attr) Apply(props TextProps, stamp *common.Stamp)

func (*Attr) EqualsExceptForLength

func (l *Attr) EqualsExceptForLength(other *Attr) bool

func (Attr) MarshalJSON

func (leaf Attr) MarshalJSON() ([]byte, error)

func (*Attr) UnmarshalJSON

func (leaf *Attr) UnmarshalJSON(data []byte) error

type Attrs

type Attrs []Attr

func (Attrs) Clone

func (attrs Attrs) Clone() Attrs

func (Attrs) Concat

func (attrs Attrs) Concat(other Attrs) Attrs

func (*Attrs) Merge

func (attrs *Attrs) Merge(other Attrs)

func (Attrs) Slice

func (attrs Attrs) Slice(start, end uint32) Attrs

type TextProps

type TextProps = map[string]any

Jump to

Keyboard shortcuts

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