|
Ivan Daunis |
at Sep 11, 2012 at 7:58 pm
|
⇧ |
| |
Basically each .go file has an init() function which I use to register the
Controllers, and define the Views and Models that I'm implementing in such
file.
Every Controller registers a task with http.HandleFunc that executes the
Model code and that always ends with a call to the View processor.
The View processor renders and GZIPs the content defined in a system of
templates and sends it to the io.Writer previously registered by the
Controller in http.HandleFunc
Ivan
On Monday, September 10, 2012 6:00:43 PM UTC-4, tomwilde wrote:
Did you use any open-source web-toolkit or did you implement MVC yourself?
If so, could you share some thoughts on the way you implemented it?
Thanks.