Documentation ¶
Index ¶
- func GetPoolMatchBuilder() interfaces.Pool[MatchBuilder, *MatchBuilder]
- func NewDebouncingWriter(out io.Writer) (w *debouncingWriter, err error)
- func NewWriter(out io.Writer, itemPool ItemPool) (w *writer, err error)
- type Item
- type ItemIcon
- type ItemPool
- type ItemText
- type MatchBuilder
- type Mod
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPoolMatchBuilder ¶
func GetPoolMatchBuilder() interfaces.Pool[MatchBuilder, *MatchBuilder]
func NewDebouncingWriter ¶
Types ¶
type Item ¶
type Item struct { Title string `json:"title,omitempty"` Arg string `json:"arg,omitempty"` Subtitle string `json:"subtitle,omitempty"` Match *catgut.String `json:"match,omitempty"` Icon ItemIcon `json:"icon,omitempty"` Uid string `json:"uid,omitempty"` ItemType string `json:"type,omitempty"` QuicklookUrl string `json:"quicklookurl,omitempty"` Text ItemText `json:"text,omitempty"` Mods map[string]Mod `json:"mods,omitempty"` }
type ItemPool ¶
type ItemPool struct {
// contains filtered or unexported fields
}
func MakeItemPool ¶
func MakeItemPool() ItemPool
type MatchBuilder ¶
func NewMatchBuilder ¶
func NewMatchBuilder() *MatchBuilder
func (*MatchBuilder) AddMatch ¶
func (mb *MatchBuilder) AddMatch(s string)
func (*MatchBuilder) AddMatchBytes ¶
func (mb *MatchBuilder) AddMatchBytes(s []byte)
func (*MatchBuilder) AddMatches ¶
func (mb *MatchBuilder) AddMatches(s ...string)
func (*MatchBuilder) Bytes ¶
func (mb *MatchBuilder) Bytes() []byte
Click to show internal directories.
Click to hide internal directories.