Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| 
       Package analysisinternal provides gopls' internal analyses with a number of helper functions that operate on typed syntax trees. 
         | 
      Package analysisinternal provides gopls' internal analyses with a number of helper functions that operate on typed syntax trees. | 
| 
         
          
            typeindex
            
            
          
           
      Package typeindex defines an analyzer that provides a golang.org/x/tools/internal/typesinternal/typeindex.Index. 
         | 
      Package typeindex defines an analyzer that provides a golang.org/x/tools/internal/typesinternal/typeindex.Index. | 
| 
       Package bisect can be used by compilers and other programs to serve as a target for the bisect debugging tool. 
         | 
      Package bisect can be used by compilers and other programs to serve as a target for the bisect debugging tool. | 
| 
       Package diff computes differences between text files or strings. 
         | 
      Package diff computes differences between text files or strings. | 
| 
         
          
            difftest
            
            
          
           
      Package difftest supplies a set of tests that will operate on any implementation of a diff algorithm as exposed by "golang.org/x/tools/internal/diff" 
         | 
      Package difftest supplies a set of tests that will operate on any implementation of a diff algorithm as exposed by "golang.org/x/tools/internal/diff" | 
| 
         
          
            lcs
            
            
          
           
      package lcs contains code to find longest-common-subsequences (and diffs) 
         | 
      package lcs contains code to find longest-common-subsequences (and diffs) | 
| 
         
          
            myers
            
            
          
           
      Package myers implements the Myers diff algorithm. 
         | 
      Package myers implements the Myers diff algorithm. | 
| 
       Package diffp implements a basic diff algorithm equivalent to patience diff. 
         | 
      Package diffp implements a basic diff algorithm equivalent to patience diff. | 
| 
       The drivertest package provides a fake implementation of the go/packages driver protocol that delegates to the go list driver. 
         | 
      The drivertest package provides a fake implementation of the go/packages driver protocol that delegates to the go list driver. | 
| 
       Package edit implements buffered position-based editing of byte slices. 
         | 
      Package edit implements buffered position-based editing of byte slices. | 
| 
       Package event provides a set of packages that cover the main concepts of telemetry in an implementation agnostic way. 
         | 
      Package event provides a set of packages that cover the main concepts of telemetry in an implementation agnostic way. | 
| 
         
          
            core
            
            
          
           
      Package core provides support for event based telemetry. 
         | 
      Package core provides support for event based telemetry. | 
| 
         
          
            export/eventtest
            
            
          
           
      Package eventtest supports logging events to a test. 
         | 
      Package eventtest supports logging events to a test. | 
| 
         
          
            export/metric
            
            
          
           
      Package metric aggregates events into metrics that can be exported. 
         | 
      Package metric aggregates events into metrics that can be exported. | 
| 
       Package expect provides support for interpreting structured comments in Go source code (including go.mod and go.work files) as test expectations. 
         | 
      Package expect provides support for interpreting structured comments in Go source code (including go.mod and go.work files) as test expectations. | 
| 
       Package facts defines a serializable set of analysis.Fact. 
         | 
      Package facts defines a serializable set of analysis.Fact. | 
| 
       Package fmtstr defines a parser for format strings as used by fmt.Printf. 
         | 
      Package fmtstr defines a parser for format strings as used by fmt.Printf. | 
| 
       Package gcimporter provides various functions for reading gc-generated object files that can be used to implement the Importer interface defined by the Go 1.5 standard library package. 
         | 
      Package gcimporter provides various functions for reading gc-generated object files that can be used to implement the Importer interface defined by the Go 1.5 standard library package. | 
| 
       Package gocommand is a helper for calling the go command. 
         | 
      Package gocommand is a helper for calling the go command. | 
| 
       Package gofix defines an Analyzer that inlines calls to functions and uses of constants marked with a "//go:fix inline" directive. 
         | 
      Package gofix defines an Analyzer that inlines calls to functions and uses of constants marked with a "//go:fix inline" directive. | 
| 
         
          
            cmd/gofix
            
            command
          
           
      The gofix command applies the inliner to the specified packages of Go source code. 
         | 
      The gofix command applies the inliner to the specified packages of Go source code. | 
| 
         
          
            findgofix
            
            
          
           
      Package findgofix searches for and validates go:fix directives. 
         | 
      Package findgofix searches for and validates go:fix directives. | 
| 
       Package gopathwalk is like filepath.Walk but specialized for finding Go packages, particularly in $GOPATH and $GOROOT. 
         | 
      Package gopathwalk is like filepath.Walk but specialized for finding Go packages, particularly in $GOPATH and $GOROOT. | 
| 
       Package goroot is a copy of package internal/goroot in the main GO repot. 
         | 
      Package goroot is a copy of package internal/goroot in the main GO repot. | 
| 
       Package imports implements a Go pretty-printer (like package "go/format") that also adds or removes import statements as necessary. 
         | 
      Package imports implements a Go pretty-printer (like package "go/format") that also adds or removes import statements as necessary. | 
| 
       Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec. 
         | 
      Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec. | 
| 
         
          
            servertest
            
            
          
           
      Package servertest provides utilities for running tests against a remote LSP server. 
         | 
      Package servertest provides utilities for running tests against a remote LSP server. | 
| 
         
          
            stack
            
            
          
           
      Package stack provides support for parsing standard goroutine stack traces. 
         | 
      Package stack provides support for parsing standard goroutine stack traces. | 
| 
       Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec. 
         | 
      Package jsonrpc2 is a minimal implementation of the JSON RPC 2 spec. | 
| 
       The mcp package provides an SDK for writing model context protocol clients and servers. 
         | 
      The mcp package provides an SDK for writing model context protocol clients and servers. | 
| 
         
          
            examples/hello
            
            command
          
          
         
       | 
      |
| 
         
          
            examples/sse
            
            command
          
          
         
       | 
      |
| 
         
          
            internal/readme/client
            
            command
          
           
      !+ 
         | 
      !+ | 
| 
         
          
            internal/readme/server
            
            command
          
           
      !+ 
         | 
      !+ | 
| 
         
          
            jsonschema
            
            
          
           
      Package jsonschema is an implementation of the [JSON Schema specification], a JSON-based format for describing the structure of JSON data. 
         | 
      Package jsonschema is an implementation of the [JSON Schema specification], a JSON-based format for describing the structure of JSON data. | 
| 
       Package modindex contains code for building and searching an Index of the Go module cache. 
         | 
      Package modindex contains code for building and searching an Index of the Go module cache. | 
| 
         
          
            gomodindex
            
            command
          
           
      A command for building and maintaining the module cache a.out <flags> <command> <args> The commands are: 'update', which attempts to update an existing index, 'query', which looks up things in the index. 
         | 
      A command for building and maintaining the module cache a.out <flags> <command> <args> The commands are: 'update', which attempts to update an existing index, 'query', which looks up things in the index. | 
| 
       Package packagesinternal exposes internal-only fields from go/packages. 
         | 
      Package packagesinternal exposes internal-only fields from go/packages. | 
| 
       Package packagestest creates temporary projects on disk for testing go tools on. 
         | 
      Package packagestest creates temporary projects on disk for testing go tools on. | 
| 
       Package pkgbits implements low-level coding abstractions for Unified IR's export data format. 
         | 
      Package pkgbits implements low-level coding abstractions for Unified IR's export data format. | 
| 
       Package pprof provides minimalistic routines for extracting information from profiles. 
         | 
      Package pprof provides minimalistic routines for extracting information from profiles. | 
| 
       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>". 
         | 
      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>". | 
| 
       refactor
        | 
      |
| 
         
          
            inline
            
            
          
           
      Package inline implements inlining of Go function calls. 
         | 
      Package inline implements inlining of Go function calls. | 
| 
       Package robustio wraps I/O functions that are prone to failure on Windows, transparently retrying errors up to an arbitrary timeout. 
         | 
      Package robustio wraps I/O functions that are prone to failure on Windows, transparently retrying errors up to an arbitrary timeout. | 
| 
       Package stdlib provides a table of all exported symbols in the standard library, along with the version at which they first appeared. 
         | 
      Package stdlib provides a table of all exported symbols in the standard library, along with the version at which they first appeared. | 
| 
       Package testenv contains helper functions for skipping tests based on which tools are present in the environment. 
         | 
      Package testenv contains helper functions for skipping tests based on which tools are present in the environment. | 
| 
       Package testfiles provides utilities for writing Go tests with files in testdata. 
         | 
      Package testfiles provides utilities for writing Go tests with files in testdata. | 
| 
       Package tool is a harness for writing Go tools. 
         | 
      Package tool is a harness for writing Go tools. | 
| 
       Package typeparams contains common utilities for writing tools that interact with generic Go code, as introduced with Go 1.18. 
         | 
      Package typeparams contains common utilities for writing tools that interact with generic Go code, as introduced with Go 1.18. | 
| 
         
          
            genericfeatures
            
            
          
           
      The genericfeatures package provides utilities for detecting usage of generic programming in Go packages. 
         | 
      The genericfeatures package provides utilities for detecting usage of generic programming in Go packages. | 
| 
       Package typesinternal provides access to internal go/types APIs that are not yet exported. 
         | 
      Package typesinternal provides access to internal go/types APIs that are not yet exported. | 
| 
         
          
            typeindex
            
            
          
           
      Package typeindex provides an Index of type information for a package, allowing efficient lookup of, say, whether a given symbol is referenced and, if so, where from; or of the inspector.Cursor for the declaration of a particular types.Object symbol. 
         | 
      Package typeindex provides an Index of type information for a package, allowing efficient lookup of, say, whether a given symbol is referenced and, if so, where from; or of the inspector.Cursor for the declaration of a particular types.Object symbol. | 
| 
       Package xcontext is a package to offer the extra functionality we need from contexts that is not available from the standard context package. 
         | 
      Package xcontext is a package to offer the extra functionality we need from contexts that is not available from the standard context package. | 
 Click to show internal directories. 
   Click to hide internal directories.