I think at that point you have to step up to one of the muxers - Gorilla is
a popular choice in the ecosystem. https://github.com/gorilla/mux
Their example:
func main() {
r := mux.NewRouter()
r.HandleFunc("/", HomeHandler)
r.HandleFunc("/products", ProductsHandler)
r.HandleFunc("/articles", ArticlesHandler)
http.Handle("/", r)
}
httprouter is also popular, and there are others, see Awesome Go for more.
Howard
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.