gocraft / web

Go Router + Middleware. Your Contexts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support vhost

truongsinh opened this issue · comments

To be clear, the workaround is pretty viable: create multiple routers, and pass them into the Handle function with different hosts: http://golang.org/pkg/net/http/#ServeMux.Handle

The feature being requested here is to add the host as a route-able parameter. Not ruling it out, but it seems a little bloaty to be in gocraft/web.

Closing.