Documentation ¶
Index ¶
- type Content
- type DELContent
- func (c *DELContent) Concat(other *DELContent) *DELContent
- func (c *DELContent) Equals(other *DELContent) bool
- func (c *DELContent) Length() uint32
- func (c DELContent) MarshalJSON() ([]byte, error)
- func (c *DELContent) Slice(start, end uint32) *DELContent
- func (c *DELContent) UnmarshalJSON(data []byte) error
- type FMTContent
- func (c *FMTContent) Attrs() attrs.Attrs
- func (c *FMTContent) Concat(other *FMTContent) *FMTContent
- func (c *FMTContent) Equals(other *FMTContent) bool
- func (c *FMTContent) Length() uint32
- func (c FMTContent) MarshalJSON() ([]byte, error)
- func (c *FMTContent) Slice(start, end uint32) *FMTContent
- func (c *FMTContent) UnmarshalJSON(data []byte) error
- type INSContent
- func (c *INSContent) Attrs() attrs.Attrs
- func (c *INSContent) Concat(other *INSContent) *INSContent
- func (c *INSContent) Equals(other *INSContent) bool
- func (c *INSContent) FMT(index uint32, other *FMTContent)
- func (c *INSContent) Length() uint32
- func (c *INSContent) MOD(index uint32, other *MODContent)
- func (c INSContent) MarshalJSON() ([]byte, error)
- func (c *INSContent) Slice(start uint32, end uint32) *INSContent
- func (c *INSContent) Text() string
- func (c *INSContent) UnmarshalJSON(data []byte) error
- type MODContent
- func (c *MODContent) Concat(other *MODContent) *MODContent
- func (c *MODContent) Equals(other *MODContent) bool
- func (c *MODContent) Length() uint32
- func (c MODContent) MarshalJSON() ([]byte, error)
- func (c *MODContent) Slice(start, end uint32) *MODContent
- func (c *MODContent) Text() string
- func (c *MODContent) UnmarshalJSON(data []byte) error
- type Meta
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
Click to show internal directories.
Click to hide internal directories.