Skip to Content
Building RESTful Web services with Go
book

Building RESTful Web services with Go

by Naren Yellavula
December 2017
Intermediate to advanced
316 pages
6h 58m
English
Packt Publishing
Content preview from Building RESTful Web services with Go

Building a REST API Client in Go and Unit Testing

In this chapter, we are going to discuss how Go client applications work in depth. We will explore grequests, a Python request-style library that allows us to make API calls from the Go code. Then, we will write a client software that uses the GitHub API. In the course of this, we will try to learn about two wonderful libraries called cli and cobra. After these fundamentals, we will try to use the knowledge to write an API testing tool on the command line. Then we will see about Redis, an in-memory database which we can use to cache the API responses to backup the data.

In this chapter, we will cover the following topics:

  • What is a client software?</li>
  • Basics for writing a command-line tool ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RESTful Web Services with Go - Second Edition

Hands-On RESTful Web Services with Go - Second Edition

Naren Yellavula
Microservices with Go

Microservices with Go

Alexander Shuiskov

Publisher Resources

ISBN: 9781788294287Supplemental Content