Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicFunc ¶
Usage:
args := make(map[reflect.Type]interface{}) args[reflect.TypeOf(new(error))] = errors.New("some error occurred") args[reflect.TypeOf(new(Transition))] = newBasicTransition("", "", NewMachine(), nil)
if err := dynafunc.NewDynamicFunc(callbackFn, args).Call(); err != nil { panic(err.Error()) }
func NewDynamicFunc ¶
func NewDynamicFunc(fn interface{}, in map[reflect.Type]interface{}) *DynamicFunc
func (*DynamicFunc) Call ¶
func (f *DynamicFunc) Call() error
Click to show internal directories.
Click to hide internal directories.