martini-api-example
martini-api-example copied to clipboard
using a func type instead of the Encoder interface
I made another version of your excelent example using a func type instead of the Encoder interface.
I don't know for sure if this complicates or simplifies your didactic article :)
Thanks, I think I'll merge it in a separate branch, to show another way to achieve this.