dynafunc

package
v0.0.0-...-b27cddb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicFunc

type DynamicFunc struct {
	Out []reflect.Value
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL