DEV Community

Discussion on: Committing Better Go Code with Static Analysis and Git Hooks

Collapse
 
jonasbn profile image
Jonas Brømsø

Thanks for the list of awesome tools.

As for pre-commit hooks, you should have a look at the pre-commit project.

The tools you mention already have hook implementations, which make it very easy to get going, search for "golang" on the page referenced.

Collapse
 
jonasbn profile image
Jonas Brømsø

I have been playing with the Go hooks listed in the resource I mentioned this afternoon. After observing different issues, I came across a recommendation for this collection, which until now has proven to be the best implementation.