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]
TODO switch to returning repool function
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 ItemIcon ¶
type ItemPool ¶
type ItemPool struct {
// contains filtered or unexported fields
}
type MatchBuilder ¶
func NewMatchBuilder ¶
func NewMatchBuilder() *MatchBuilder
func (*MatchBuilder) AddMatch ¶
func (matchBuilder *MatchBuilder) AddMatch(s string)
func (*MatchBuilder) AddMatchBytes ¶
func (matchBuilder *MatchBuilder) AddMatchBytes(s []byte)
func (*MatchBuilder) AddMatchSeq ¶
func (matchBuilder *MatchBuilder) AddMatchSeq(seq doddish.Seq)
func (*MatchBuilder) AddMatches ¶
func (matchBuilder *MatchBuilder) AddMatches(values ...string)
func (*MatchBuilder) Bytes ¶
func (matchBuilder *MatchBuilder) Bytes() []byte
Source Files
¶
- debouncing_writer.go
- item.go
- item_pool.go
- main.go
- match_builder.go
- mod.go
- writer.go
Click to show internal directories.
Click to hide internal directories.