Back to / internal


Latest Go to latest

The latest major version is .

Published: Aug 6, 2020 | License: BSD-3-Clause | Module:
Path Synopsis
analysisinternal Package analysisinternal exposes internal-only fields from go/analysis.
event Package event provides a set of packages that cover the main concepts of telemetry in an implementation agnostic way.
event/core Package core provides support for event based telemetry.
event/export/eventtest Package eventtest supports logging events to a test.
event/export/metric Package metric aggregates events into metrics that can be exported.
event/export/ocagent Package ocagent adds the ability to export all telemetry to an ocagent.
fastwalk Package fastwalk provides a faster version of filepath.Walk for file system scanning tools.
gocommand Package gocommand is a helper for calling the go command.
gopathwalk Package gopathwalk is like filepath.Walk but specialized for finding Go packages, particularly in $GOPATH and $GOROOT.
imports Package imports implements a Go pretty-printer (like package "go/format") that also adds or removes import statements as necessary.
jsonrpc2 Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec.
jsonrpc2/servertest Package servertest provides utilities for running tests against a remote LSP server.
lsp Package lsp implements LSP for gopls.
lsp/analysis/fillreturns Package fillreturns defines an Analyzer that will attempt to automatically fill in a return statement that has missing values with zero value elements.
lsp/analysis/fillstruct Package fillstruct defines an Analyzer that automatically fills in a struct declaration with zero value elements for each field.
lsp/analysis/nonewvars Package nonewvars defines an Analyzer that applies suggested fixes to errors of the type "no new variables on left side of :=".
lsp/analysis/noresultvalues Package noresultvalues defines an Analyzer that applies suggested fixes to errors of the type "no result values expected".
lsp/analysis/simplifycompositelit Package simplifycompositelit defines an Analyzer that simplifies composite literals.
lsp/analysis/simplifyrange Package simplifyrange defines an Analyzer that simplifies range statements.
lsp/analysis/simplifyslice Package simplifyslice defines an Analyzer that simplifies slice statements.
lsp/analysis/undeclaredname Package undeclaredname defines an Analyzer that applies suggested fixes to errors of the type "undeclared name: %s".
lsp/analysis/unusedparams Package unusedparams defines an analyzer that checks for unused parameters of functions.
lsp/browser Package browser provides utilities for interacting with users' browsers.
lsp/cache Package cache implements the caching layer for gopls.
lsp/cmd Package cmd handles the gopls command line.
lsp/cmd/test Package cmdtest contains the test suite for the command line behavior of gopls.
lsp/debug Package debug exports debug information for gopls.
lsp/debug/tag Package tag provides the labels used for telemetry throughout gopls.
lsp/diff Package diff supports a pluggable diff algorithm.
lsp/diff/difftest Package difftest supplies a set of tests that will operate on any implementation of a diff algorithm as exposed by ""
lsp/diff/myers Package myers implements the Myers diff algorithm.
lsp/fake Package fake provides fake implementations of a text editor, LSP client plugin, and Sandbox environment for use in tests.
lsp/fuzzy Package fuzzy implements a fuzzy matching algorithm.
lsp/helper Invoke with //go:generate helper/helper -t Server -d protocol/tsserver.go -u lsp -o server_gen.go invoke in internal/lsp
lsp/lsprpc Package lsprpc implements a jsonrpc2.StreamServer that may be used to serve the LSP on a jsonrpc2 channel.
lsp/mod Package mod provides core features related to go.mod file handling for use by Go editors and tools.
lsp/protocol Package protocol contains the structs that map directly to the wire format of the "Language Server Protocol".
lsp/regtest Package regtest provides a framework for writing gopls regression tests.
lsp/snippet Package snippet implements the specification for the LSP snippet format.
lsp/source Package source provides core features for use by Go editors and tools.
lsp/tests Package tests exports functionality to be used across a variety of gopls tests.
memoize Package memoize supports memoizing the return values of functions with idempotent results that are expensive to compute.
packagesinternal Package packagesinternal exposes internal-only fields from go/packages.
proxydir Package proxydir provides functions for writing module data to a directory in proxy format, so that it can be used as a module proxy by setting GOPROXY="file://<dir>".
span Package span contains support for representing with positions and ranges in text files.
stack Package stack provides support for parsing standard goroutine stack traces.
stack/gostacks The gostacks command processes stdin looking for things that look like stack traces and simplifying them to make the log more readable.
testenv Package testenv contains helper functions for skipping tests based on which tools are present in the environment.
tool Package tool is a harness for writing Go tools.
xcontext Package xcontext is a package to offer the extra functionality we need from contexts that is not available from the standard context package.