commit | 0258583e90736c6f6cb0a2c0bd969f18d783ab10 | [log] [tgz] |
---|---|---|
author | Rob Findley <rfindley@google.com> | Wed Feb 12 14:56:40 2025 +0000 |
committer | Rob Findley <rfindley@google.com> | Wed Feb 12 14:56:59 2025 +0000 |
tree | 34af6d37e9d2f44e3478282d77f2813b7710aa4b | |
parent | 2f3699ff1ce27a8f049e8a309394c8178fe8493d [diff] | |
parent | b5a64bbcfd2247d59f40403a28ca8e3a9a417a24 [diff] |
all: merge master (b5a64bb) into gopls-release-branch.0.18 Also add back the replace directive. For golang/go#71607 Conflicts: - gopls/go.mod - gopls/go.sum Merge List: + 2025-02-12 b5a64bbcf go/analysis/internal/checker: be silent with -fix + 2025-02-11 b752317a2 internal/analysisinternal: disable AddImport test without go command + 2025-02-11 d98774edc cmd/signature-fuzzer/internal/fuzz-generator: update to math/rand/v2 + 2025-02-11 25932623b gopls/internal/telemetry/cmd/stacks: remove leading \b match + 2025-02-11 b3c5d108c gopls: record telemetry counters for settings that are used + 2025-02-11 d2585c467 gopls/internal/golang: folding range: remove FoldingRangeInfo + 2025-02-11 0d16805d3 internal/stdlib: update stdlib index for Go 1.24.0 + 2025-02-11 027eab55a go/analysis/analysistest: RunWithSuggestedFix: 3-way merge + 2025-02-10 f61b225cb internal/analysisinternal: AddImport puts new import in a group + 2025-02-10 91bac86b5 internal/analysisinternal: add CanImport + 2025-02-10 94c41d32c gopls/internal/golang: add comment about SymbolKind + 2025-02-10 09747cdf5 go.mod: update golang.org/x dependencies + 2025-02-10 dc9353b60 gopls/internal/analysis/modernize: appendclipped: unclip + 2025-02-07 a886a1c2e internal/analysisinternal: AddImport handles dot imports + 2025-02-07 94c3c49c4 go/analysis/analysistest: RunWithSuggestedFix: assume valid fixes + 2025-02-07 5f9967d63 gopls/internal/analysis/modernize: strings.Split -> SplitSeq + 2025-02-07 a1eb5fda8 go/analysis/passes/framepointer: support arm64 + 2025-02-07 9c087d9bf internal/analysis/gofix: change "forward" back to "inline" + 2025-02-07 82317cea8 gopls/internal/analysis/modernize: slices.Delete: import slices Change-Id: I5e21f982437cd4288f71b00484fa589ddcab8df6
This repository provides the golang.org/x/tools
module, comprising various tools and packages mostly for static analysis of Go programs, some of which are listed below. Use the “Go reference” link above for more information about any package.
It also contains the golang.org/x/tools/gopls
module, whose root package is a language-server protocol (LSP) server for Go. An LSP server analyses the source code of a project and responds to requests from a wide range of editors such as VSCode and Vim, allowing them to support IDE-like functionality.
Selected commands:
cmd/goimports
formats a Go program like go fmt
and additionally inserts import statements for any packages required by the file after it is edited.cmd/callgraph
prints the call graph of a Go program.cmd/digraph
is a utility for manipulating directed graphs in textual notation.cmd/stringer
generates declarations (including a String
method) for “enum” types.cmd/toolstash
is a utility to simplify working with multiple versions of the Go toolchain.These commands may be fetched with a command such as
go install golang.org/x/tools/cmd/goimports@latest
Selected packages:
go/ssa
provides a static single-assignment form (SSA) intermediate representation (IR) for Go programs, similar to a typical compiler, for use by analysis tools.
go/packages
provides a simple interface for loading, parsing, and type checking a complete Go program from source code.
go/analysis
provides a framework for modular static analysis of Go programs.
go/callgraph
provides call graphs of Go programs using a variety of algorithms with different trade-offs.
go/ast/inspector
provides an optimized means of traversing a Go parse tree for use in analysis tools.
go/cfg
provides a simple control-flow graph (CFG) for a Go function.
go/gcexportdata
and go/gccgoexportdata
read and write the binary files containing type information used by the standard and gccgo
compilers.
go/types/objectpath
provides a stable naming scheme for named entities (“objects”) in the go/types
API.
Numerous other packages provide more esoteric functionality.
This repository uses Gerrit for code changes. To learn how to submit changes, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/tools.
The main issue tracker for the tools repository is located at https://go.dev/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.
This repository uses prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.