commit | a1532b81a28fb0525ba7538ce6ee4878d37601cb | [log] [tgz] |
---|---|---|
author | smasher164 <aindurti@gmail.com> | Wed May 06 22:30:17 2020 -0400 |
committer | Rebecca Stambler <rstambler@golang.org> | Thu May 07 05:02:07 2020 +0000 |
tree | f597e44b13ecea3aa7fa884399d23179db70252b | |
parent | be0c89d0d3ecf9286f68f749518fbe751785531e [diff] |
internal/lsp/cache: avoid string(int) conversion LoadMode and ParseMode are currently hashed with a string(int) conversion, but this conversion is now discouraged (see the vet check 'stringintconv' for more information). Since the hash uses the code point, this change replaces these instances with string(rune(int)). Updates golang/go#32479. Change-Id: I0d8e91d073fc34ac9faafe75a0d86cf71a5327d4 Reviewed-on: https://go-review.googlesource.com/c/tools/+/232679 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@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.