This code has been base from this good article published in medium.com about the usage of go-guardian. With a little bit of changes I put a piece of flavor just for fun:
- Migration to go guard v2
- A refactor of the code using negroni
- Including a sample Cors handler