commit | 5f95ed5921efa3338dc38833ce4ce39317f8b6e9 | [log] [tgz] |
---|---|---|
author | Suzy Mueller <suzmue@golang.org> | Tue Jul 30 14:00:02 2019 -0400 |
committer | Suzy Mueller <suzmue@golang.org> | Thu Aug 01 20:53:47 2019 +0000 |
tree | 24433540eb7b0b68003b1f2d8f869bd97363ca7c | |
parent | 1e85ed8060aa6fdecbcb0fd2614c1e8ab5fb12fa [diff] |
internal/imports, internal/lsp: quick fix import errors Get quick fixes for the diagnostics related to import errors. These fixes add, remove, or rename exactly one import. This change exposes the individual fixes found by the imports package, and then applies each of them separately to the source. Since applying each fix requires a new ast anyway, we pass in the source to be parsed each time. Change-Id: Ibcbfa703d21b6983d774d2010716da8c25525d4f Reviewed-on: https://go-review.googlesource.com/c/tools/+/188059 Run-TryBot: Suzy Mueller <suzmue@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Rebecca Stambler <rstambler@golang.org>
This subrepository holds the source for various packages and tools that support the Go programming language.
Some of the tools, godoc
and vet
for example, are included in binary Go distributions.
Others, including the Go guru
and the test coverage tool, can be fetched with go get
.
Packages include a type-checker for Go and an implementation of the Static Single Assignment form (SSA) representation for Go programs.
The easiest way to install is to run go get -u golang.org/x/tools/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/tools
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the tools repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/tools/(your subdir):” in the subject line, so it is easy to find.