Summary
Go tools are invaluable to a programmers when they’re writing code. In this chapter, you learned about go build and how to compile your code into executables. Then, you learned how consistent neat code is important when working on a project and how you can use gofmt to automatically neaten the code for you. This can be further improved with goimports, which can remove unnecessary imports for better security and automatically add imports you may have forgotten to add yourself.
After, you looked at go vet and how it can be used to help you find any mistakes that the compiler may have missed. You also learnt how to use the Go race detector to find race conditions hidden in your code. Then, you learned how to generate documentation for your code, which makes for easier collaboration when working on larger projects. Finally, you looked at downloading third-party packages using the go get tool, which allows you to make use of numerous Go packages that are available online...