Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is responsible to load and handle the `Model(s)` inside a controller struct via the `iris:"model"` tag field. It stores the optional models from the struct's fields values that are being setted by the method function and set them as ViewData.
func Load ¶
func Load(typ reflect.Type) *Controller
Load tries to lookup and set for any valid model field. Returns nil if no models are being used.
Click to show internal directories.
Click to hide internal directories.