Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorWithoutPrefixNotAllowed = errors.New("no prefix is not allowed") ErrorEmptyLabelNotAllowed = errors.New("empty label is not allowed") )
Functions ¶
Types ¶
type Options ¶
type Options struct {
Prefixes []string `json:"prefixes,omitempty"`
Commands []Command `json:"commands,omitempty"`
ContinueWithoutPrefix bool `json:"continueWithoutPrefix,omitempty"`
ContinueWithEmptyLabel bool `json:"continueWithEmptyLabel,omitempty"`
PrefixCaseSensitive bool `json:"prefixCaseSensitive,omitempty"`
LabelCaseSensitive bool `json:"labelCaseSensitive,omitempty"`
}
type Parser ¶
type Result ¶
type Result struct {
Message Message `json:"message"`
TrimmedMessage Message `json:"trim"`
Prefixes []string `json:"prefixes"`
Prefix string `json:"prefix"`
MessageStrip Message `json:"messageStrip"`
MessageStripSplit []string `json:"messageStripSplit"`
Label string `json:"label"`
MessageCut Message `json:"messageCut"`
Args []string `json:"args"`
Matches []Command `json:"matches"`
Match Command `json:"match"`
}
Click to show internal directories.
Click to hide internal directories.