package compounds
import "shirakumo.org/markless/compounds"
This package holds type representations for components.Option s in the components.Compound component. Typically you will only interact with the OptionConstructor s of this package to assemble valid compound options in the parser.
Index
- func NewBold() directives.OptionType
- func NewColor() directives.OptionType
- func NewFont() directives.OptionType
- func NewInternalLink() directives.OptionType
- func NewItalic() directives.OptionType
- func NewLink() directives.OptionType
- func NewSize() directives.OptionType
- func NewSpoiler() directives.OptionType
- func NewStrikethrough() directives.OptionType
- func NewUnderline() directives.OptionType
- type Bold
- type Color
- type Font
- type InternalLink
- type Italic
- type Link
- type OptionConstructor
- type Size
- type Spoiler
- type Strikethrough
- type Underline
Functions
func NewBold
func NewBold() directives.OptionType
func NewColor
func NewColor() directives.OptionType
func NewFont
func NewFont() directives.OptionType
func NewInternalLink
func NewInternalLink() directives.OptionType
func NewItalic
func NewItalic() directives.OptionType
func NewLink
func NewLink() directives.OptionType
func NewSize
func NewSize() directives.OptionType
func NewSpoiler
func NewSpoiler() directives.OptionType
func NewStrikethrough
func NewStrikethrough() directives.OptionType
func NewUnderline
func NewUnderline() directives.OptionType
Types
type Bold
type Bold struct{}
func (*Bold) Create
func (o *Bold) Create(args string, p directives.Parser) components.Option
func (*Bold) Name
func (o *Bold) Name() string
type Color
type Color struct { R uint8 G uint8 B uint8 }
func (*Color) Create
func (o *Color) Create(args string, p directives.Parser) components.Option
func (*Color) Name
func (o *Color) Name() string
type Font
type Font struct { components.ValueOption }
func (*Font) Create
func (o *Font) Create(args string, p directives.Parser) components.Option
func (*Font) Name
func (o *Font) Name() string
type InternalLink
type InternalLink struct { components.ValueOption }
func (*InternalLink) Create
func (o *InternalLink) Create(args string, p directives.Parser) components.Option
func (*InternalLink) Name
func (o *InternalLink) Name() string
type Italic
type Italic struct{}
func (*Italic) Create
func (o *Italic) Create(args string, p directives.Parser) components.Option
func (*Italic) Name
func (o *Italic) Name() string
type Link
type Link struct { components.ValueOption }
func (*Link) Create
func (o *Link) Create(args string, p directives.Parser) components.Option
func (*Link) Name
func (o *Link) Name() string
type OptionConstructor
type OptionConstructor func() directives.OptionType
type Size
type Size struct { components.UnitOption }
func (*Size) Create
func (o *Size) Create(args string, p directives.Parser) components.Option
func (*Size) Name
func (o *Size) Name() string
type Spoiler
type Spoiler struct{}
func (*Spoiler) Create
func (o *Spoiler) Create(args string, p directives.Parser) components.Option
func (*Spoiler) Name
func (o *Spoiler) Name() string
type Strikethrough
type Strikethrough struct{}
func (*Strikethrough) Create
func (o *Strikethrough) Create(args string, p directives.Parser) components.Option
func (*Strikethrough) Name
func (o *Strikethrough) Name() string
type Underline
type Underline struct{}
func (*Underline) Create
func (o *Underline) Create(args string, p directives.Parser) components.Option
func (*Underline) Name
func (o *Underline) Name() string