package
0.0.32
Repository: https://github.com/april1989/origin-go-tools.git
Documentation: pkg.go.dev

# Functions

AllImportsFixes formats f for each possible fix to the imports.
CommentToMarkdown converts comment text to formatted markdown.
No description provided by the author
Completion returns a list of possible candidates for completion, given a a file and a position.
DefaultOptions is the options that are used for Gopls execution independent of any externally provided configuration (LSP initialization, command invokation, etc.).
No description provided by the author
No description provided by the author
No description provided by the author
EnabledAnalyzers returns all of the analyzers enabled for the given snapshot.
No description provided by the author
FoldingRange gets all of the folding range for f.
Format formats a file with a given range.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Identifier returns identifier information for a position in a file, accounting for a potentially incomplete selector.
No description provided by the author
IncomingCalls returns an array of CallHierarchyIncomingCall for a file and the position within the file.
No description provided by the author
LensFuncs returns the supported lensFuncs for Go files.
MarshalArgs encodes the given arguments to json.RawMessages.
NarrowestPackage picks the "narrowest" package for a given file.
OutgoingCalls returns an array of CallHierarchyOutgoingCall for a file and the position within the file.
PrepareCallHierarchy returns an array of CallHierarchyItem for a file and the position within the file.
No description provided by the author
References returns a list of references for a given identifier within the packages containing i.File.
Rename returns a map of TextEdits for each file modified when renaming a given identifier within a package.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UnmarshalArgs decodes the given json.RawMessages to the variables provided by args.
WidestPackage returns the Package containing the most files.
WorkspaceSymbols matches symbols across views using the given query, according to the SymbolMatcher matcher.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Go is a normal go source file.
No description provided by the author
GoModTidy is the source for a diagnostic computed by running `go mod tidy`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MaxDeepCompletions limits deep completion results because in most cases there are too many to be useful.
Mod is a go.mod file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseExported specifies that the public symbols are needed, but things like private symbols and function bodies are not.
ParseFull specifies the full AST is needed.
ParseHeader specifies that the main package declaration and imports are needed.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Structured is an experimental setting that returns a structured hover format.
Sum is a go.sum file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TypecheckAll means ParseFull for workspace packages, and both Full and Exported for others.
TypecheckFull means to use ParseFull.
Invalid default value.
TypecheckWorkspace means to use ParseFull for workspace packages, and ParseExported for others.
No description provided by the author
No description provided by the author
No description provided by the author
UnknownKind is a file type we don't know about.
No description provided by the author

# Variables

CommandExtractFunction extracts statements to a function.
CommandExtractVariable extracts an expression to a variable.
CommandFillStruct is a gopls command to fill a struct with default values.
CommandGenerate runs `go generate` for a given directory.
CommandRegenerateCgo regenerates cgo definitions.
Commands are the commands currently supported by gopls.
CommandTest runs `go test` for a specific test function.
CommandTidy runs `go mod tidy` for a module.
CommandToggleDetails controls calculation of gc annotations.
CommandUndeclaredName adds a variable declaration for an undeclared name.
CommandUpgradeDependency upgrades a dependency.
CommandVendor runs `go mod vendor` for a module.
ErrNoIdentFound is error returned when no identifer is found at a particular position.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Analyzer represents a go/analysis analyzer with some boolean properties that let the user know how to use the analyzer.
No description provided by the author
ClientOptions holds LSP-specific configuration that is provided by the client.
No description provided by the author
No description provided by the author
DebuggingOptions should not affect the logical execution of Gopls, but may be altered for debugging purposes.
No description provided by the author
No description provided by the author
ErrIsDefinition is an error that informs the user they got no completions because they tried to complete the name of a new object being defined.
No description provided by the author
ExperimentalOptions defines configuration for features under active development.
FileIdentity uniquely identifies a file at a version from a FileSystem.
FileModification represents a modification to a file.
FoldingRangeInfo holds range and kind info of folding for an ast.Node.
Hooks contains configuration that is provided to the Gopls command by the main package.
No description provided by the author
IdentifierInfo holds information about an identifier in Go source.
No description provided by the author
No description provided by the author
Options holds various configuration that affects Gopls execution, organized by the nature or origin of the settings.
A ParsedGoFile contains the results of parsing a Go file.
A ParsedModule contains the results of parsing a go.mod file.
No description provided by the author
ReferenceInfo holds information about reference to an identifier in Go source.
No description provided by the author
A Selection represents the cursor position and surrounding identifier.
ServerOptions holds LSP-specific configuration that is provided by the server.
No description provided by the author
A TidiedModule contains the results of running `go mod tidy` on a module.
UserOptions holds custom Gopls configuration (not part of the LSP) that is modified by the client.
No description provided by the author

# Interfaces

FileHandle represents a handle to a specific version of a single file.
Overlay is the type for a file held in memory on a session.
Package represents a Go package that has been type-checked.
Session represents a single connection from a client.
Snapshot represents the current state for the given view.
No description provided by the author
View represents a single workspace.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
FileKind describes the kind of the file in question.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseMode controls the content of the AST produced when parsing a source file.
SuggestedFixFunc is a function used to get the suggested fixes for a given gopls command, some of which are provided by go/analysis.Analyzers.
No description provided by the author
No description provided by the author
TypecheckMode controls what kind of parsing should be done (see ParseMode) while type checking a package.