tools: golang.org/x/tools/internal

Directories

PathSynopsis
analysisinternalPackage analysisinternal exposes internal-only fields from go/analysis.
apidiff
eventPackage event provides a set of packages that cover the main concepts of telemetry in an implementation agnostic way.
event/corePackage core provides support for event based telemetry.
event/export
event/export/eventtestPackage eventtest supports logging events to a test.
event/export/metricPackage metric aggregates events into metrics that can be exported.
event/export/ocagentPackage ocagent adds the ability to export all telemetry to an ocagent.
event/export/ocagent/wire
event/export/prometheus
event/keys
event/label
fakenet
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/fillstructPackage fillstruct defines an Analyzer that automatically fills in a struct declaration with zero value elements for each field.
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 Sandbox environment 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/snippetPackage snippet implements the specification for the LSP snippet format.
lsp/sourcePackage source provides core features for use by Go editors and tools.
lsp/source/completionPackage completion provides core functionality for code completion in Go editors and tools.
lsp/source/genapijsonCommand genapijson generates JSON describing gopls' external-facing API, including user settings and commands.
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.
proxydirPackage 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>".
spanPackage span contains support for representing with positions and ranges in text files.
stackPackage stack provides support for parsing standard goroutine stack traces.
stack/gostacksThe gostacks command processes stdin looking for things that look like stack traces and simplifying them to make the log more readable.
stack/stacktest
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.
typesinternal
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-10-20. Refresh now. Tools for package owners.