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: