Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Building Microservices with Go: 15. Refactoring Part 3/3

5.8K views on YouTube

In the final part of our refactoring exercise we look at how we can make the final changes to the RESTFul products API to add the ability to select a currency. Most of this episode is a little bit of a chore as I refactor the logger from the standard library with the structured logger hclog.

Source code:
https://github.com/nicholasjackson/building-microservices-youtube/tree/episode_15_2

Adding query string restrictions with Gorilla framework:

Documenting query string parameters with GoSwagger: