Call go fmt, go lint, go test and go vet
(via go test) during presubmit and git hooks.

Will only warn when the go commands are not available
as go is not part of depot_tools.

TEST=Tried with and without go/gofmt/golint in the path.
TEST=Tried on go and non go files.
TEST=Tried on go files with and without errors.

Change-Id: I8a6aa4227f0d8649f7c390ab59f187f14955293c
Reviewed-by: George Burgess <>
Commit-Queue: Tobias Bosch <>
Tested-by: Tobias Bosch <>
Legacy-Commit-Queue: Commit Bot <>
3 files changed