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.
Currently, controllers have a pretty simple definition: any type that has (1) actions or (2) magic methods.
Action is a method that returns http.Handler as the first argument.
Magic methods are:
Before and After actions;
Initially and Finally methods:
func (c Controller) Initially(w http.ResponseWriter, r *http.Request) bool {
}
1 will require us to rethink the definition of controllers and rewrite the generate/handlers tool. I want to think it over before making further changes. Probably, two approaches will be used simultaneously, not sure yet.
This PR reverts the changes made for #1.
Currently, controllers have a pretty simple definition: any type that has (1) actions or (2) magic methods.
http.Handler
as the first argument.1 will require us to rethink the definition of controllers and rewrite the
generate/handlers
tool. I want to think it over before making further changes. Probably, two approaches will be used simultaneously, not sure yet.