So far, we've mainly focused on writing server-side REST APIs. Basically, these are server programs. In a few cases, such as gRPC, we need a client. A client program takes input from the user and executes some logic. For developing a Go client, we should know about the flag library in Go. Before that, we should be aware of how to make requests for an API from a Go program. In the previous chapters, we used different clients such as cURL, Browser, Postman, and so on. But how can we turn a Go program into a client?
Command-line tools are equally important as web user interfaces to perform system tasks. In business-to-business (B2B) companies, the software is packaged as a single binary instead of having multiple different packages. As a Go developer, you should know how to achieve the goal of writing apps for the command line. Then, that...