commit | f45d5df211489e7fa65e61928a0179f8a12f1001 | [log] [tgz] |
---|---|---|
author | Johan Brandhorst <johan.brandhorst@gmail.com> | Tue Sep 17 12:24:06 2019 +0100 |
committer | Rebecca Stambler <rstambler@golang.org> | Wed Sep 18 16:24:38 2019 +0000 |
tree | 325d5aaf2476379a06c1277fa4a7ea975b355f2f | |
parent | 905c8ffbfa41b8a66dda0ba8e5d90908c3447522 [diff] |
internal/lsp/source: add sortslice analyzer The sortslice analyzer warns the user when they're using a non-slice parameter to sort.Slice. It can also suggest fixes for 3 different cases of misuse: 1. The parameter is a pointer to a slice. 2. The parameter is an array 3. The parameter is a function with no arguments that returns a slice. Change-Id: If6327b19ab3c476cf17ca3c5fd75bc43bb8683e9 Reviewed-on: https://go-review.googlesource.com/c/tools/+/195898 Run-TryBot: Johan Brandhorst <johan.brandhorst@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> 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.