Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCompleter = Completer{
GocodePath: "gocode",
}
DefaultCompleter is a default Completer with gocode's path set to "gocode".
Functions ¶
Types ¶
type Candidate ¶
type Candidate struct {
// One of "package", "func", "type", "var", "const".
Class string `json:"class"`
// The name of the candidate.
Name string `json:"name"`
// The type (in Go) of the candidate.
Type string `json:"type"`
}
Candidate is resulting entries from gocode.
type Completer ¶
type Completer struct {
// The path to gocode
GocodePath string
// contains filtered or unexported fields
}
Completer is the interface to gocode that this package provides.
type Result ¶
type Result struct {
// Cursor position within Candidates
Cursor int
// The list of Candidates
Candidates []Candidate
}
Result represents a completion result of Query().
func (*Result) UnmarshalJSON ¶
UnmarshalJSON decodes JSON bytes text to Result.
Click to show internal directories.
Click to hide internal directories.