gocode

package module
v0.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 31 Imported by: 0

README

Gocode as a package

This fork of gocode provides gocode as a package instead of a daemon.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoCandidates = []Candidate{}

Functions

This section is empty.

Types

type Candidate

type Candidate struct {
	Name  string `json:"name"`
	Type  string `json:"type"`
	Class string `json:"class"`
}

func (Candidate) String

func (c Candidate) String() string

type Config

type Config struct {
	GOROOT        string
	GOPATH        string
	InstallSuffix string
	AutoBuild     bool
	Builtins      bool // propose builtin functions
}

func (*Config) Complete

func (c *Config) Complete(file []byte, name string, cursor int) []Candidate

type DirCache

type DirCache struct {
	// contains filtered or unexported fields
}

func NewDirCache

func NewDirCache() *DirCache

func (*DirCache) Readdirnames

func (c *DirCache) Readdirnames(path string) ([]string, error)

type DirEntry

type DirEntry struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
_testing
Package typeparams provides functions to work indirectly with type parameter data stored in go/ast and go/types objects, while these API are guarded by a build constraint.
Package typeparams provides functions to work indirectly with type parameter data stored in go/ast and go/types objects, while these API are guarded by a build constraint.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL