content

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content[T any] interface {
	*INSContent | *DELContent | *FMTContent | *MODContent

	Length() uint32
	Concat(other T) T
	Slice(start uint32, end uint32) T
	Equals(other T) bool
}

type DELContent

type DELContent struct {
	// contains filtered or unexported fields
}

func NewDELContent

func NewDELContent(length uint32) *DELContent

func (*DELContent) Concat

func (c *DELContent) Concat(other *DELContent) *DELContent

func (*DELContent) Equals

func (c *DELContent) Equals(other *DELContent) bool

func (*DELContent) Length

func (c *DELContent) Length() uint32

func (DELContent) MarshalJSON

func (c DELContent) MarshalJSON() ([]byte, error)

func (*DELContent) Slice

func (c *DELContent) Slice(start, end uint32) *DELContent

func (*DELContent) UnmarshalJSON

func (c *DELContent) UnmarshalJSON(data []byte) error

type FMTContent

type FMTContent struct {
	// contains filtered or unexported fields
}

func NewFMTContent

func NewFMTContent(length uint32, props attrs.TextProps) *FMTContent

func (*FMTContent) Attrs

func (c *FMTContent) Attrs() attrs.Attrs

func (*FMTContent) Concat

func (c *FMTContent) Concat(other *FMTContent) *FMTContent

func (*FMTContent) Equals

func (c *FMTContent) Equals(other *FMTContent) bool

func (*FMTContent) Length

func (c *FMTContent) Length() uint32

func (FMTContent) MarshalJSON

func (c FMTContent) MarshalJSON() ([]byte, error)

func (*FMTContent) Slice

func (c *FMTContent) Slice(start, end uint32) *FMTContent

func (*FMTContent) UnmarshalJSON

func (c *FMTContent) UnmarshalJSON(data []byte) error

type INSContent

type INSContent struct {
	// contains filtered or unexported fields
}

func NewINSContent

func NewINSContent(text string) *INSContent

func (*INSContent) Attrs

func (c *INSContent) Attrs() attrs.Attrs

func (*INSContent) Concat

func (c *INSContent) Concat(other *INSContent) *INSContent

assuming content is not meta

func (*INSContent) Equals

func (c *INSContent) Equals(other *INSContent) bool

func (*INSContent) FMT

func (c *INSContent) FMT(index uint32, other *FMTContent)

func (*INSContent) Length

func (c *INSContent) Length() uint32

func (*INSContent) MOD

func (c *INSContent) MOD(index uint32, other *MODContent)

assuming content is not meta

func (INSContent) MarshalJSON

func (c INSContent) MarshalJSON() ([]byte, error)

func (*INSContent) Slice

func (c *INSContent) Slice(start uint32, end uint32) *INSContent

assuming content is not meta

func (*INSContent) Text

func (c *INSContent) Text() string

func (*INSContent) UnmarshalJSON

func (c *INSContent) UnmarshalJSON(data []byte) error

type MODContent

type MODContent struct {
	// contains filtered or unexported fields
}

func NewMODContent

func NewMODContent(text string) *MODContent

func (*MODContent) Concat

func (c *MODContent) Concat(other *MODContent) *MODContent

func (*MODContent) Equals

func (c *MODContent) Equals(other *MODContent) bool

func (*MODContent) Length

func (c *MODContent) Length() uint32

func (MODContent) MarshalJSON

func (c MODContent) MarshalJSON() ([]byte, error)

func (*MODContent) Slice

func (c *MODContent) Slice(start, end uint32) *MODContent

func (*MODContent) Text

func (c *MODContent) Text() string

func (*MODContent) UnmarshalJSON

func (c *MODContent) UnmarshalJSON(data []byte) error

type Meta

type Meta map[string]*string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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