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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user