Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct { gxui.DefaultAdapter // contains filtered or unexported fields }
Adapter is an adapter that is based on gxui's FilteredListAdapter and CodeSuggestionAdapter. There are some differences mostly revolving around displaying the suggestions.
func (*Adapter) Set ¶
func (a *Adapter) Set(pos int, suggestions ...Suggestion)
type FileContainer ¶
FileContainer is any type that contains information about a file.
type GoCodeProvider ¶
type GoCodeProvider struct {
// contains filtered or unexported fields
}
GoCodeProvider is a gocode-based implementation of gxui.CodeSyntaxProvider.
func NewGoCodeProvider ¶
func NewGoCodeProvider(fileContainer FileContainer, environ []string) *GoCodeProvider
func (*GoCodeProvider) SuggestionsAt ¶
func (p *GoCodeProvider) SuggestionsAt(runeIndex int) []Suggestion
type Suggestion ¶
A suggestion is a simple implementation of gxui.CodeSuggestion.
func (Suggestion) String ¶
func (s Suggestion) String() string
String handles displaying the suggestion.
TODO: Implement gxui.Viewer instead of gxui.Stringer, so that
we can syntax-highlight types in the completion list.
Click to show internal directories.
Click to hide internal directories.