CustomDecoratorV2 appends an InterpreterDecoratorV2 to the program.
(dec interpreter.InterpretableDecoratorV2)
| 473 | |
| 474 | // CustomDecoratorV2 appends an InterpreterDecoratorV2 to the program. |
| 475 | func CustomDecoratorV2(dec interpreter.InterpretableDecoratorV2) ProgramOption { |
| 476 | return func(p *prog) (*prog, error) { |
| 477 | p.plannerOptions = append(p.plannerOptions, interpreter.CustomDecoratorV2(dec)) |
| 478 | return p, nil |
| 479 | } |
| 480 | } |
| 481 | |
| 482 | // Functions adds function overloads that extend or override the set of CEL built-ins. |
| 483 | // |