Documentation
¶
Overview ¶
Package function implements some functions for control the function execution and some is for functional programming.
Index ¶
- func After(n int, fn interface{}) func(args ...interface{}) []reflect.Value
- func Before(n int, fn interface{}) func(args ...interface{}) []reflect.Value
- func Compose(fnList ...func(...interface{}) interface{}) func(...interface{}) interface{}
- func Delay(delay time.Duration, fn interface{}, args ...interface{})
- func Schedule(d time.Duration, fn interface{}, args ...interface{}) chan bool
- type Fn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compose ¶
func Compose(fnList ...func(...interface{}) interface{}) func(...interface{}) interface{}
Compose compose the functions from right to left
Types ¶
Click to show internal directories.
Click to hide internal directories.