commit | 90b807ada4cc7ab5d1409d637b1f3beb5a776be7 | [log] [tgz] |
---|---|---|
author | Daniel Martí <mvdan@mvdan.cc> | Tue Feb 13 14:24:18 2018 +0000 |
committer | Daniel Martí <mvdan@mvdan.cc> | Tue Feb 13 22:52:51 2018 +0000 |
tree | 62fba42a7c2c1cb6bb2baa1caa68627d38c9e525 | |
parent | c0251d31d27142b569bd4a16ced6073bbcda6150 [diff] |
all: fix a few issues found by unparam In cmd/present, a mode was being passed to the function parse, but it wasn't actually being used. Use it. In go/ssa, checkFinalInstr received an idx integer but it doesn't actually need it. Get rid of it. Lastly, in imports, findImportStdlib always returned rename==false. Get rid of that result parameter. Change-Id: I719006b69ee80a3ef4b0ea24c1c206016a7e304b Reviewed-on: https://go-review.googlesource.com/93596 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@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.