commit | 51e363b66d25e28ae79d34610901114c8df309ee | [log] [tgz] |
---|---|---|
author | Rebecca Stambler <rstambler@golang.org> | Thu Jan 17 11:59:05 2019 -0500 |
committer | Rebecca Stambler <rstambler@golang.org> | Fri Feb 01 23:18:25 2019 +0000 |
tree | b3555b8bd7b3de726c43b79f9ab942b77de4a02f | |
parent | 0e05534988fece6d00407fef91bec542a7859d8e [diff] |
internal/lsp: implement diff for computing text edits Rather than replacing the whole file on gofmt or goimports, use the Myers diff algorithm to compute diffs for a file. We send those back as text edits. Change-Id: I4f8cce5b27d51eae1911049ea002558a84cdf1bf Reviewed-on: https://go-review.googlesource.com/c/158579 Reviewed-by: Ian Cottrell <iancottrell@google.com>
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.