Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MSSBinder = revel.Binder{ Bind: func(params *revel.Params, name string, typ reflect.Type) reflect.Value { var ( result = reflect.MakeMap(typ) keyType = typ.Key() valueType = typ.Elem() ) for paramName, values := range params.Values { key := paramName result.SetMapIndex(revel.BindValue(key, keyType), revel.BindValue(values[0], valueType)) } return result }, Unbind: func(output map[string]string, name string, val interface{}) { mapValue := reflect.ValueOf(val) for _, key := range mapValue.MapKeys() { revel.Unbind(output, fmt.Sprintf("%v", key.Interface()), mapValue.MapIndex(key).Interface()) } }, }
for test map[string][string]
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.