4 ms·
Curious your opinion on what you would advise if not Martini or Gin? I love martini (and lately gin) and definitely love and use go every day. What about thes
by spotman 11y ago
Curious your opinion on what you would advise if not Martini or Gin?
I love martini (and lately gin) and definitely love and use go every day. What about these frameworks is not idiomatic go?
Is there another framework that is? Or you suggest just rolling your own using net/http by itself?
Cheers
- kornish 11y agoHere's a great blog post by the author of Martini about why, after he had gained experience in Go, he came to realize that Martini isn't very idiomatic: https://codegangsta.io/blog/2014/05/19/my-thoughts-on-martini/ https://codegangsta.io/blog/2014/05/19/my-thoughts-on-martin... tl;dr - Martini doesn't have a strict, type-safe API. Overuse of reflection leads to a small performance loss but a much larger, much more important cognitive tax.
- jonesb6 11y agoI remember awhile ago Martini used to have a large performance hit that Gin didn't. I think it had something to do with the url multiplexer, wouldn't be surprised if it's since been fixed but it was the reason I initially chose Gin when I first started writing Go.
- elithrar 11y ago> I think it had something to do with the url multiplexer "Slow" in the case of a router/mux is entirely relative though. There's been this strange focus on routing speed/allocations, when its the smallest slice of your total request-to-response performance. Martini's router won't make your application noticeably slower than any other.