Git Hook

Execute go vet and goimports in git pre-commit

The article describes a script to apply `go vet` which is a static analysis and `goimports` (go fmt) in git's pre-commit hook. When we use the script, we can prevent committing unexpected code.

Golang / Git Hook について

There are technical posts about "Git Hook" in Golang.
/Git Hook