ConstantToVal converts a protobuf Constant to a CEL-native ref.Val.
(c *exprpb.Constant)
| 662 | |
| 663 | // ConstantToVal converts a protobuf Constant to a CEL-native ref.Val. |
| 664 | func ConstantToVal(c *exprpb.Constant) (ref.Val, error) { |
| 665 | return AlphaProtoConstantAsVal(c) |
| 666 | } |
| 667 | |
| 668 | // AlphaProtoConstantAsVal converts a v1alpha1.Constant protobuf to a CEL-native ref.Val. |
| 669 | func AlphaProtoConstantAsVal(c *exprpb.Constant) (ref.Val, error) { |