Add a precommit hook for golint and go test.