Committing Better Go Code with Static Analysis and Git Hooks

1 · Enda · Feb. 7, 2019, midnight
I’ve been using Go for a while now and there are three static analysis tools (linters) that I use daily. There are dozens more that I could be using, but I don’t think it’s wise to become too dependent on these tools (most of which are unofficial) to do your job for you. Eventually they will become a nightmare to track, maintain and they may eventually become unmaintained or unsupported. Gofmt Gofmt is an official tool for formatting Go code that has come as part of the language since 2013. It’...