commit | aafaee8bce8c38f7ce09907ff7430abcb6f58132 | [log] [tgz] |
---|---|---|
author | Dan Kortschak <dan@kortschak.io> | Mon Feb 03 14:53:33 2020 +1030 |
committer | Rob Pike <r@golang.org> | Wed Mar 11 09:07:12 2020 +0000 |
tree | 7e2c26e5d05bc98b3dd669331c15710b69544f75 | |
parent | 43e3193a9bc5f2c33d34b8b7d4535e72b9795972 [diff] |
go/analysis/passes/printf: give leeway for fmt.Formatter satisfaction We have no way of knowing the concrete type of an interface value; it might be a fmt.Formatter. To avoid false positives, assume that all interface values are fmt.Formatters. Updates golang/go#36564 Change-Id: Iaf18ba2794e4d3095d0018502c1c6c459a360b42 Reviewed-on: https://go-review.googlesource.com/c/tools/+/217180 Reviewed-by: Rob Pike <r@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.