123456789101112131415161718192021222324252627282930 |
- package seq
- import "reflect"
- const (
- TypRetParam = 1
- TypExecParam = 2
- )
- //Param for execution
- type Param struct {
- typ byte
- nres int
- ires int
- // Or
- param reflect.Value
- }
- //RetFrom use return from
- // n func Number
- // i return index
- func RetFrom(n, i int) Param {
- return Param{TypRetParam, n, i, reflect.Value{}}
- }
- //ExecParam
- // n Param number
- func ExecParam(n int) Param {
- return Param{TypExecParam, n, 0, reflect.Value{}}
- }
|