1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-20 03:17:04 +00:00

add an overview of the new semantics at the mvc2/README.md

Former-commit-id: 6efc702fd4a74787c7fe271e231de283670a25e0
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-12-11 06:24:55 +02:00
parent aa18b62f64
commit 297c581e30
3 changed files with 122 additions and 1 deletions

View File

@@ -166,8 +166,8 @@ func (c *ControllerActivator) analyze() {
// SetBindings will override any bindings with the new "values".
func (c *ControllerActivator) SetBindings(values ...reflect.Value) {
// set field index with matching binders, if any.
c.input = values
c.bindings = newTargetStruct(reflect.ValueOf(c.initRef), values...)
c.input = c.input[0:0]
}
// Bind binds values to this controller, if you want to share