Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory! An easy way to do this is to wrap the top-level mux when calling http.ListenAndServe:
http.ListenAndServe(":8080", context.ClearHandler(http.DefaultServeMux))
Echo is using an own router so I'm wondering if this middleware is already doing that to avoid memory leaks?
In the gorilla/session description it states:
Echo is using an own router so I'm wondering if this middleware is already doing that to avoid memory leaks?
Source> http://www.gorillatoolkit.org/pkg/sessions