tools/go/analysis/passes/stdmethods
Alan Donovan 2f5a1a7a23 go/analysis/passes/stdmethods: show p.T not dir/p.T in diagnostic
Type.String prints named types using the complete package path: "dir/pkg.T"

The notation used by canonicalMethod, and the cmd/vet/all whitelist,
and the one users want to see, uses only the package name: "pkg.T".

Change-Id: If2334a8cca1fb80e947cb105530b946a5a8dec7b
Reviewed-on: https://go-review.googlesource.com/c/149597
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Michael Matloob <matloob@golang.org>
2018-11-14 16:30:30 +00:00
..
testdata/src/a go/analysis/passes/stdmethods: show p.T not dir/p.T in diagnostic 2018-11-14 16:30:30 +00:00
stdmethods.go go/analysis/passes/stdmethods: show p.T not dir/p.T in diagnostic 2018-11-14 16:30:30 +00:00
stdmethods_test.go go/analysis/passes: add doc and copyright comments 2018-10-16 20:28:15 +00:00