Garson: Writing a simple router in go, would love to have feedback
Hello guys, I am working on implementing a router on top of net/http, there is nothing fancy about it, and it's my first time to write a router "or a useful package ever [imposter syndrome detected :D]". I hope you guys can give me a feeback on my go...
hashnode.com
Ujjwal Kanth
A few things
garson.GET)Try()exposed as external method?garson.Handle(method, path string, handler http.HandlerFunc). I hate it when a router doesn't provide this. What if I want to write a wrapper around your router, where I might not know the method beforehand.