commit | c12078ef0834ba8602550a49213690fce71e96d9 | [log] [tgz] |
---|---|---|
author | Rohan Challa <rohan@golang.org> | Mon Mar 16 13:55:58 2020 -0400 |
committer | Rohan Challa <rohan@golang.org> | Fri Mar 27 18:58:09 2020 +0000 |
tree | 22962f87a3d441d86396204c569ca73eea0ab0ea | |
parent | f4fcf867e710f011999090fe3bef367096314b48 [diff] |
go/analysis/passes/unreachable: add suggested-fix to remove dead code This change adds suggested fixes to the unreachable analysis pass by giving the user a fix to remove the code. Change-Id: If0add84e6977f12a1cef6e92120a1b4571b95a11 Reviewed-on: https://go-review.googlesource.com/c/tools/+/223664 Run-TryBot: Rohan Challa <rohan@golang.org> 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.