Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unique ¶
Unique sorts and deduplicates a slice of strings. See https://github.com/golang/go/wiki/SliceTricks#in-place-deduplicate-comparable
Types ¶
type FunctionParser ¶
type FunctionParser struct {
// contains filtered or unexported fields
}
FunctionParser parses functions from the CSV file.
func NewFunctionParser ¶
func NewFunctionParser() *FunctionParser
NewFunctionParser returns a new *FunctionParser.
func (*FunctionParser) Row ¶
func (p *FunctionParser) Row(row []string) error
Row implements Parser.Row by checking whether the first character of the value in the second column is an uppercase letter.
func (*FunctionParser) String ¶
func (p *FunctionParser) String() string
type OperationParser ¶
type OperationParser struct {
// contains filtered or unexported fields
}
OperationParser parses functions from the CSV file.
func NewOperationParser ¶
func NewOperationParser() *OperationParser
NewOperationParser returns a new *OperationParser.
func (*OperationParser) Row ¶
func (p *OperationParser) Row(row []string) error
Row implements Parser.Row by checking whether the first character of the value in the second column is not a letter.
func (*OperationParser) String ¶
func (p *OperationParser) String() string
type Opts ¶
type Opts struct {
File string `` /* 168-byte string literal not displayed */
}
Opts contaiins command options.
type Snippet ¶
type Snippet struct {
Prefix []string `json:"prefix"`
Body []string `json:"body"`
Description string `json:"description"`
}
Snippet models a snippet.
type SnippetParser ¶
type SnippetParser struct {
// contains filtered or unexported fields
}
SnippetParser parses functions from the CSV file.
func NewSnippetParser ¶
func NewSnippetParser() *SnippetParser
NewSnippetParser returns a new *SnippetParser.
func (*SnippetParser) Row ¶
func (p *SnippetParser) Row(row []string) error
Row implements Parser.Row.
func (*SnippetParser) String ¶
func (p *SnippetParser) String() string