All

Writing Clients for REST APIs!

Episode 26

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.

Keep on rockin’, Gophers!

Check out the example code on Github.


If you enjoyed this screencast, please consider becoming a backer and supporting Go in 5 Minutes. Cool stickers and more await you!