In this chapter, we are going to discuss how Go client applications work in depth. We will explore grequests, a Python requests-style library that allows us to make API calls from the Go code. Then, we'll write some client software that uses the GitHub API. While doing that, we'll try to learn about two Go libraries called cli and cobra. After learning about the fundamentals of those packages, we'll write an API testing tool for the command line. Then, we'll introduce Redis, an in-memory database that we can use to cache the API responses to back up the data.
In this chapter, we will cover the following topics:
- Plan for building a REST API client
- Basics for writing a command-line tool in Go
- grequests – a REST API package for Go
- Getting comfortable with the GitHub REST API
- Cobra, an advanced CLI library
- Creating a CLI...