commit | e32504ce151ad29d8706bdc1b1e8b08e284f7b8a | [log] [tgz] |
---|---|---|
author | Chressie Himpel <chressie@google.com> | Fri Aug 06 17:42:56 2021 +0200 |
committer | Damien Neil <dneil@google.com> | Tue Aug 17 17:01:38 2021 +0000 |
tree | 50d92db6a940bc94d96dc21d6569cbeb11f78f9e | |
parent | 96f147c24230384928062f67f51c5774f7a686c1 [diff] |
go/analysis/passes/printf: fix %w for non-fmt.Errorf functions Previously all functions that were named Errorf have been treated like a fmt.Errorf-based function. But only fmt.Errorf (and functions based on fmt.Errorf) accept the %w verb. Fix that. Updates golang/go#47641. Change-Id: Iec5d0ae674c7dc817e85291dcfa064303eafba7e Reviewed-on: https://go-review.googlesource.com/c/tools/+/340409 Reviewed-by: Zvonimir Pavlinovic <zpavlinovic@google.com> Reviewed-by: Damien Neil <dneil@google.com> Trust: 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 prettier to format JS and CSS files.
The version of prettier
used is 1.18.2.
It is encouraged that all JS and CSS code be run through this before submitting a change. However, it is not a strict requirement enforced by CI.
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.