revel.Controller is the context for
a single request and controls
- the incoming
- and the
Response back, in Hmtl, Json, Xml, File or your own custom.
A Controller is any type that embeds a
*revel.Controller as the first field/type.
must be 'embedded' as the first type in
the a controller struct anonymously
, the Go way for 'kinda inheritance'
revel.Controller is the context for a request and contains the
Below are the most used components and type/struct definitions to give a taste of
- As part of handling a HTTP request, Revel instantiates an instance of a
- It then sets all of the properties on the embedded
- Revel does not share a
Controller instance between requests.