tools: golang.org/x/tools/internal

Directories

PathSynopsis
analysisinternalPackage analysisinternal exposes internal-only fields from go/analysis.
apidiff
fastwalkPackage fastwalk provides a faster version of filepath.Walk for file system scanning tools.
gocommandPackage gocommand is a helper for calling the go command.
gopathwalkPackage gopathwalk is like filepath.Walk but specialized for finding Go packages, particularly in $GOPATH and $GOROOT.
importsPackage imports implements a Go pretty-printer (like package "go/format") that also adds or removes import statements as necessary.
jsonrpc2Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec.
jsonrpc2/servertestPackage servertest provides utilities for running tests against a remote LSP server.
lspPackage lsp implements LSP for gopls.
lsp/analysis/fillreturnsPackage fillreturns defines an Analyzer that will attempt to automatically fill in a return statement that has missing values with zero value elements.
lsp/analysis/nonewvarsPackage nonewvars defines an Analyzer that applies suggested fixes to errors of the type "no new variables on left side of :=".
lsp/analysis/noresultvaluesPackage noresultvalues defines an Analyzer that applies suggested fixes to errors of the type "no result values expected".
lsp/analysis/simplifycompositelitPackage simplifycompositelit defines an Analyzer that simplifies composite literals.
lsp/analysis/simplifyrangePackage simplifyrange defines an Analyzer that simplifies range statements.
lsp/analysis/simplifyslicePackage simplifyslice defines an Analyzer that simplifies slice statements.
lsp/analysis/undeclarednamePackage undeclaredname defines an Analyzer that applies suggested fixes to errors of the type "undeclared name: %s".
lsp/analysis/unusedparamsPackage unusedparams defines an analyzer that checks for unused parameters of functions.
lsp/browserPackage browser provides utilities for interacting with users' browsers.
lsp/cachePackage cache implements the caching layer for gopls.
lsp/cmdPackage cmd handles the gopls command line.
lsp/cmd/testPackage cmdtest contains the test suite for the command line behavior of gopls.
lsp/debugPackage debug exports debug information for gopls.
lsp/debug/tagPackage tag provides the labels used for telemetry throughout gopls.
lsp/diffPackage diff supports a pluggable diff algorithm.
lsp/diff/difftestPackage difftest supplies a set of tests that will operate on any implementation of a diff algorithm as exposed by "golang.org/x/tools/internal/lsp/diff"
lsp/diff/myersPackage myers implements the Myers diff algorithm.
lsp/fakePackage fake provides fake implementations of a text editor, LSP client plugin, and workspace for use in tests.
lsp/fuzzyPackage fuzzy implements a fuzzy matching algorithm.
lsp/helperInvoke with //go:generate helper/helper -t Server -d protocol/tsserver.go -u lsp -o server_gen.go invoke in internal/lsp
lsp/lsprpcPackage lsprpc implements a jsonrpc2.StreamServer that may be used to serve the LSP on a jsonrpc2 channel.
lsp/modPackage mod provides core features related to go.mod file handling for use by Go editors and tools.
lsp/protocolPackage protocol contains the structs that map directly to the wire format of the "Language Server Protocol".
lsp/regtestPackage regtest provides an environment for writing regression tests.
lsp/snippetPackage snippet implements the specification for the LSP snippet format.
lsp/sourcePackage source provides core features for use by Go editors and tools.
lsp/testsPackage tests exports functionality to be used across a variety of gopls tests.
memoizePackage memoize supports memoizing the return values of functions with idempotent results that are expensive to compute.
packagesinternalPackage packagesinternal exposes internal-only fields from go/packages.
spanPackage span contains support for representing with positions and ranges in text files.
telemetryPackage telemetry provides a set of packages that cover the main concepts of telemetry in an implementation agnostic way.
telemetry/eventPackage event provides support for event based telemetry.
telemetry/export
telemetry/export/metricPackage metric aggregates events into metrics that can be exported.
telemetry/export/ocagentPackage ocagent adds the ability to export all telemetry to an ocagent.
telemetry/export/ocagent/wire
telemetry/export/prometheus
telemetry/unitPackage unit holds the definitions for the units you can use in telemetry.
testenvPackage testenv contains helper functions for skipping tests based on which tools are present in the environment.
toolPackage tool is a harness for writing Go tools.
xcontextPackage xcontext is a package to offer the extra functionality we need from contexts that is not available from the standard context package.

Updated 2020-04-05. Refresh now. Tools for package owners.