Description

We have a web server done with gorilla mux and we want to migrate it to gin gonic, but we won't going to do it all at once: we wanna do it gradually.

Is there a way to define a gin gonic router and include it inside my gorilla server? Or any other way to acomplish that migration?

Thanks!

Comment From: fifsky

You may need an API gateway (Ingress, Traefik or nginx) to forward traffic on a specified path to gin Server

Comment From: rn0l485

Hi @jmwielandt

net/http gin gorilla/mux All of above are implements the http.HandlerFunc, you might be easily rebuild your function.

Comment From: adonese

You can use a small adapter to serve net/http handler methods from gin, here's an example:

func ginAdapter() gin.HandlerFunc {
    return func(c *gin.Context) {
        yourHandler(c.Writer, c.Request)
    }
}