(funcName string, inter interface{})
| 17 | } |
| 18 | |
| 19 | func (controller *Controller) AddFunction(funcName string, inter interface{}) (map[string]interface{}, error) { |
| 20 | _, hadValue := controller.Funcs[funcName] |
| 21 | if !hadValue { |
| 22 | controller.Funcs[funcName] = inter |
| 23 | } else { |
| 24 | errorstr := "Had Func" + funcName |
| 25 | return controller.Funcs, errors.New(errorstr) |
| 26 | } |
| 27 | return controller.Funcs, nil |
| 28 | } |
| 29 | |
| 30 | func (controller *Controller) Call(name string, params ...interface{}) (result []reflect.Value, err error) { |
| 31 | _, hadValue := controller.Funcs[name] |
no outgoing calls
no test coverage detected