commit | b8c0eb49112411cafed4f44f5b7debe8e40bc349 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Fri Mar 22 10:37:01 2019 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Tue Mar 26 20:44:19 2019 +0000 |
tree | ca2124905783cf9038d144a55d956ace413e6917 | |
parent | 0268d3dd0724eb8b65d4e71a1285076f6efd643d [diff] |
go/analysis/passes/errorsas: check type of errors.As target Add a vet pass that checks that the second argument to errors.As is a pointer to a type implementing error. Change-Id: I0924e634cbea0664c8728f0e74213b924f8498e6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/168938 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.