Call the received function.
(args ...interface{})
| 16 | |
| 17 | // Call the received function. |
| 18 | func (f Function) Call(args ...interface{}) error { |
| 19 | if !f.IsValid() { |
| 20 | return errors.New("invalid function") |
| 21 | } |
| 22 | return f.Caller.Call(args...) |
| 23 | } |
| 24 | |
| 25 | // IsValid returns true if f represents a Function. |
| 26 | // It returns false if f is the zero Value. |