Use gofmt for parsing go code

This not only catches code that doesn't compile, but one that breaks
conventions as well.
Run `go build` before `gofmt`

`gofmt` doesn't catch standard build errors, just misalignments.
Syntax-check go with a standalone script
Style fix