WithFuncs sets the functions that can be used in the selector.
(fc FuncCollection)
| 29 | |
| 30 | // WithFuncs sets the functions that can be used in the selector. |
| 31 | func WithFuncs(fc FuncCollection) ExecuteOptionFn { |
| 32 | return func(o *Options) { |
| 33 | o.Funcs = fc |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | // WithVariable sets a variable for use in the selector. |
| 38 | func WithVariable(key string, val *model.Value) ExecuteOptionFn { |