Documentation
¶
Index ¶
- func Split(nameVariantGroup string) (string, string, string)
- type Completer
- type CompleterMap
- func (c CompleterMap) Filter(filter choices.Choice) CompleterMap
- func (c CompleterMap) Format(pkg, tag string) string
- func (c CompleterMap) FormatCompleters() string
- func (c CompleterMap) FormatImports() string
- func (c CompleterMap) Lookup(nameVariantGroup string) (*Completer, bool)
- func (c CompleterMap) Merge(other CompleterMap)
- func (c CompleterMap) SortVariants()
- type Completers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Completer ¶
type Completer struct {
Name string `json:"name"`
Description string `json:"description,omitempty"`
Group string `json:"group,omitempty"`
Package string `json:"package,omitempty"`
Spec string `json:"spec,omitempty"`
Variant string `json:"variant,omitempty"`
Overlay string `json:"overlay,omitempty"`
Url string `json:"url,omitempty"`
Choice string `json:"choice,omitempty"`
Execute func() error `json:"-"` // TODO should be a method based on the fields
}
func (Completer) FormatCompleter ¶
func (Completer) FormatImport ¶
type CompleterMap ¶
type CompleterMap map[string]Completers
func (CompleterMap) Filter ¶
func (c CompleterMap) Filter(filter choices.Choice) CompleterMap
func (CompleterMap) Format ¶
func (c CompleterMap) Format(pkg, tag string) string
func (CompleterMap) FormatCompleters ¶
func (c CompleterMap) FormatCompleters() string
func (CompleterMap) FormatImports ¶
func (c CompleterMap) FormatImports() string
func (CompleterMap) Lookup ¶
func (c CompleterMap) Lookup(nameVariantGroup string) (*Completer, bool)
func (CompleterMap) Merge ¶
func (c CompleterMap) Merge(other CompleterMap)
func (CompleterMap) SortVariants ¶
func (c CompleterMap) SortVariants()
type Completers ¶
type Completers []Completer
func (Completers) Len ¶
func (c Completers) Len() int
func (Completers) Less ¶
func (c Completers) Less(i, j int) bool
func (Completers) Swap ¶
func (c Completers) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.