Is Gorilla/Mux bad to use?

I don’t want to repeat my Jquery experience, keep learning in something that I think it’s useful and will make my life easier to find out after weeks of hard-working that it is useless and even harming my website by slowing it down. So should I use Gorilla/Mux for my URLs instead of net/http? will it affect my website performance/speed? can things done in Gorilla/mux be done in -vanilla- Golang net/http package?

The mux implementation is based on a for loop, and its performance is not as good as httprouter.

1 Like

Ok thanks, how can I achieve the URL mux give me with the HTTP router? like How is this mux URL page/{pagename}/{id} done with HTTP router?

/page/:name/:oid in httprouter, https://github.com/julienschmidt/httprouter#usage.

1 Like