Creating a Client for the Phone Book Service

Let’s create a client for the phone book web service using the cobra package.

We'll cover the following

In this lesson, we create a command-line utility that interacts with the phone book web service that was developed earlier in this chapter. This version of the phone book client is going to be created using the cobra package, which means that a dedicated GitHub or GitLab repository is required. In this case, the repository can be found here. The first thing to do after running git clone is associating that repository with the directory that is going to be used for development:

Get hands-on with 1200+ tech skills courses.