We're a place where coders share, stay up-to-date and grow their careers.
r := mux.NewRouter()
is my mux router. api is a subrouter on r.
In this example using api instead of r would work.
But if i have other routes on r this would not work.
Oops, good point. I think I hadn't used api yet and it was complaining about that.
one of the "best worst" feature of go. :D
is my mux router. api is a subrouter on r.
In this example using api instead of r would work.
But if i have other routes on r this would not work.
Oops, good point. I think I hadn't used api yet and it was complaining about that.
one of the "best worst" feature of go. :D