Introduction
In the previous chapter, you've learned how to produce concurrent code. Although Go makes the task of creating concurrent code much easier compared to other languages, concurrent code is intrinsically complex. This is when learning to use tools to write better code that will simplify the complexity comes handy.
In this chapter, you will learn about Go tools. Go comes with several tools to help you write better code. For example, in the previous chapters, you came across go build
, which you used to build your code into an executable. You will also have come across go test
, which you used to test your code. There are also a few more tools that help in different ways. For example, the goimports
tool will check if you have all the import statements required for your code to work and if not, it will add them. It can also check if any of your import statements are no longer needed and remove them. While this seems like a very simple thing, it means you no longer need...