Negroni for middleware

Hello all,

I’m in the process of teaching myself how to write RESTful APIs in Go. The book I’m reading mentioned negroni, but didn’t get much more into it after that. I did some googling and some people said not to use it because of performance problems.

I’ve looked through the github repo for it and read through the examples. So two things.

  1. Are the claims of performance problems real, and is there another middle-ware handler the group recommends?
  2. Does anyone have a good link to a solid tutorial for Negroni?


I like the http.Handler wrapper method to roll my own without stacking them in something like Negroni. Just seems cleaner to me, here’s a good article on the topic:

1 Like

go-chi offers nice compromise between performance and usability. It is also idiomatic.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.