Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Handlers = CompletionHandlers{}
Handlers are global Handlers to be used in annotations
Functions ¶
Types ¶
type CompletionHandlers ¶
CompletionHandlers is a set of predictors
func (CompletionHandlers) Add ¶
func (h CompletionHandlers) Add(k string, p complete.Predictor)
Add adds a predictor to the list of handlers
func (CompletionHandlers) Get ¶
func (h CompletionHandlers) Get(k string) complete.Predictor
Get returns a predictor from the list of handlers
func (CompletionHandlers) GetOrNone ¶
func (h CompletionHandlers) GetOrNone(k string) complete.Predictor
GetOrNone returns a predictor in case it exists, otherwise complete.PredictNothing
func (CompletionHandlers) Has ¶
func (h CompletionHandlers) Has(k string) bool
Has returns whether a predictor exists
Click to show internal directories.
Click to hide internal directories.