commit | b1dcc6b1892c0a4e28b52b9f6b680076c895c74a | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Tue May 07 06:38:00 2019 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Sat Jun 01 10:43:45 2019 +0000 |
tree | e052719bfbee86cde76f152a937e3faefaed37da | |
parent | 26e35f15edef9a960ed13c88b445c5674371da18 [diff] |
errorsas: ignore empty interface target No longer report a problem if target's type is interface{}. This avoids false positives like ``` var e error var i interface{} = &e ... errors.As(..., i) ... ``` Change-Id: Ibf6e7163147248305130a5e650f92b80e34a44de Reviewed-on: https://go-review.googlesource.com/c/tools/+/175717 Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org> Reviewed-by: Damien Neil <dneil@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.