3 ms·
I don't think Negroni and Gin will mix well</pun> I implemented almost the same features as Negroni's middlewares [0] in my project (a backend for grassroots r
by im_dario 12y ago
I don't think Negroni and Gin will mix well</pun>
I implemented almost the same features as Negroni's middlewares [0] in my project (a backend for grassroots referendums). I was even asked to do a Sentry middleware [1] to improve it.
I would advise you against merging projects. It would be great if you separate the route grouping code and release it as an independent library to build on httprouter (even merging them) and keep Gin as it is.
Although, my question was performance-wise because I think Negroni will be similar in performance.
[0] https://github.com/imdario/minshu/blob/master/minshu-server/http.go https://github.com/imdario/minshu/blob/master/minshu-server/...
[1] https://github.com/imdario/minshu/issues/1 https://github.com/imdario/minshu/issues/1