pre-upload: check that Go files are formatted with gofmt.

BUG=chromium:372937
TEST=Tried repo upload with various commits containing unformatted
Go files. Prints the correct set of files for each commit.

Change-Id: I6fbe2840180356cab54b4be40043eae4cbb32be9
Reviewed-on: https://chromium-review.googlesource.com/290150
Commit-Ready: Rahul Chaudhry <rahulchaudhry@chromium.org>
Tested-by: Rahul Chaudhry <rahulchaudhry@chromium.org>
Reviewed-by: Luis Lozano <llozano@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
1 file changed