goaltools / goal

Goal is a toolkit for high productivity web development in Go language in the spirit of Revel Framework that is built around the concept of code generation.
BSD 2-Clause "Simplified" License
87 stars 3 forks source link

Multi-domain / Sub-domains? #42

Closed xpbliss closed 8 years ago

xpbliss commented 8 years ago

In httprouter, it supportes Multi-domain / Sub-domains? https://github.com/julienschmidt/httprouter#web-frameworks-based-on-httprouter Could goal support it?

ghost commented 8 years ago
  1. Goal can work with any router.
  2. Default router is denco. Or rather a wrapper around it for better integration with Goal and smoother user experience. It doesn't handle domains, URN only.
  3. Routes generation doesn't have anything related to domains either.

Both our router wrapper and routes generation tool can be modified to support this functionality. I just need to understand the use-case for this.

  1. Is it a mechanism for listening on different hosts/ports?
  2. Or is a way of using different routes for different hosts/ports?
xpbliss commented 8 years ago

I want to use the different routes for different hosts/ports.

xpbliss commented 8 years ago

How about your new progress on the goal?