Let’s take a break from the Buffalo series and talk about a highly requested topic - how to write clients for REST APIs.
In this episode, we’re going to use the cobra library to write a CLI for the DarkSky API. But we won’t take a standard DarkSky API client off the shelf this time! We’re going to build one from scratch, using gorequest, so we can see what goes into the process end to end.
Check out the example code on GitHub and keep on rockin', Gophers!