commit | 36563e24a2627da92566d43aa1c7a2dd895fc60d | [log] [tgz] |
---|---|---|
author | Reilly Watson <reillywatson@gmail.com> | Wed Feb 27 14:53:29 2019 -0500 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Thu Apr 25 15:00:28 2019 +0000 |
tree | c0d7fc1ac0422d510a71ea33e9e214821fd30fa2 | |
parent | 9e44c1c403071e0c2831952513e7b948587d94af [diff] |
cmd/vet: verify potentially-recursive Stringers are actually Stringers The printf recursiveStringer check was checking for a function called String(), but wasn't checking that it matched the actual function signature of Stringer. Fixes golang/go#30441 Change-Id: I09d5fba035bb717036f7edf57efc63e2e3fe51d5 Reviewed-on: https://go-review.googlesource.com/c/tools/+/164217 Reviewed-by: Alan Donovan <adonovan@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.