A RESTful Client

Let’s learn how to develop a RESTful client.

We'll cover the following...

This lesson illustrates the development of a client for the RESTful server developed previously. However, in this case, the client acts as a testing program that tries the capabilities of the RESTful server—later in this chapter, we are going to learn how to write proper clients using cobra.

Coding example

So, the code of the client, which can be found in rClient.go, is as follows:

Access this course and 1400+ top-rated courses and projects.