Summary
We started this chapter with understanding client software: how a software client works and how we can create a few. We saw the basics of writing a command-line application. cli is a third-party package that allows us to create beautiful command-line applications. After installing it, we learned how to collect command-line arguments through the tool. We also explored commands and flags in our CLI application. Next, we looked into grequests, a package similar to Python requests that's used to make API requests from Go code. We learned how to make GET, POST, and other requests from the client programs. We looked at a fresh package called cobra for creating commands/sub-commands.
Then, we explored the GitHub API and how to fetch details ...
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.
Read now
Unlock full access