Updating the Phone Book Application
Let’s update the phone book application using the concepts we have learned so far.
In this lesson, we will change the format that the phone application uses for storing its data. This time, the phone book application uses JSON all over. Additionally, it uses the cobra
package for implementing the supported commands. The path of the GitHub repository is here—we can git clone
that directory if we want but try to create your own version if you have the time.
Note: When developing real applications, do not forget to
git commit
andgit push
the changes from time to time to ensure that we keep a history of the development phase in GitHub or GitLab. Among other things, this is a good way to keep backups!
Using cobra
First, we need to create an empty GitHub repository and clone it:
Get hands-on with 1400+ tech skills courses.