We started this chapter with understanding client software: how a software client works and how we can create a few. We saw the basics of writing a command-line application. cli is a third-party package that allows us to create beautiful command-line applications. After installing it, we learned how to collect command-line arguments through the tool. We also explored commands and flags in our CLI application. Next, we looked into grequests, a package similar to Python requests that's used to make API requests from Go code. We learned how to make GET, POST, and other requests from the client programs. We looked at a fresh package called cobra for creating commands/sub-commands.
Then, we explored the GitHub API and how to fetch details about repositories. With the knowledge of both concepts, we developed a client that lists the repositories for a given user and also...