]> Cypherpunks repositories - gostls13.git/commit
cmd/vet: restructure to be package-driven
authorRob Pike <r@golang.org>
Fri, 22 Feb 2013 21:32:43 +0000 (13:32 -0800)
committerRob Pike <r@golang.org>
Fri, 22 Feb 2013 21:32:43 +0000 (13:32 -0800)
commit48f79a95d08c3baff87f4fbc06d3f2cc9762ec5a
tree24851f0743bf4abed955a1c728f335c9a3ad59a2
parent3d2dfc5a7b254295d41d9104d6a53ebad5125afc
cmd/vet: restructure to be package-driven
This is a simple refactoring of main.go that will enable the type checker
to be used during vetting.
The change has an unimportant effect on the arguments: it now assumes
that all files named explicitly on the command line belong to the same
package. When run by the go command, this was true already.

Also restore a missing parenthesis from an error message.

R=golang-dev, gri, bradfitz
CC=golang-dev
https://golang.org/cl/7393052
src/cmd/vet/main.go
src/cmd/vet/method.go