Commit 32b879c6 authored by Ian Lance Taylor's avatar Ian Lance Taylor

doc: explain how to use "go vet -shadow"

Fixes #29260

Change-Id: I419b74d06380113f4bd32b9aeb053c3be36208d5
Reviewed-on: https://go-review.googlesource.com/c/154584Reviewed-by: 's avatarAlan Donovan <adonovan@google.com>
parent 06484245
......@@ -93,6 +93,16 @@ Go 1.13 will require macOS 10.11 El Capitan or later.
vet</code> should work with all supported versions of Go.
</p>
<p>
As part of this change, the experimental <code>-shadow</code> option
is no longer available with <code>go vet</code>. Checking for
variable shadowing may now be done using
<pre>
go install golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
go vet -vettool=$(which shadow)
</pre>
</p>
<h3 id="gocache">Build cache requirement</h3>
<p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment