Versions in this module Expand all Collapse all v0 v0.5.7 Dec 5, 2020 Changes in this version + const BREAK + const CASE + const CHAN + const CONST + const CONTINUE + const DEFAULT + const DEFER + const ELSE + const FALLTHROUGH + const FOR + const FUNC + const GO + const GOTO + const IF + const IMPORT + const INTERFACE + const MAP + const MaxDeepCompletions + const PACKAGE + const RANGE + const RETURN + const SELECT + const STRUCT + const SWITCH + const TYPE + const VAR + func Completion(ctx context.Context, snapshot source.Snapshot, fh source.FileHandle, ...) ([]CompletionItem, *Selection, error) + type CompletionItem struct + AdditionalTextEdits []protocol.TextEdit + Depth int + Detail string + Documentation string + InsertText string + Kind protocol.CompletionItemKind + Label string + Score float64 + func (i *CompletionItem) Snippet() string + type ErrIsDefinition struct + func (e ErrIsDefinition) Error() string + type Selection struct + func (p Selection) Content() string + func (p Selection) End() token.Pos + func (p Selection) Prefix() string + func (p Selection) Start() token.Pos + func (p Selection) Suffix() string