YAMLEncode encodes a CEL ref.Val to its YAML string representation.
(val ref.Val)
| 293 | |
| 294 | // YAMLEncode encodes a CEL ref.Val to its YAML string representation. |
| 295 | func YAMLEncode(val ref.Val) (string, error) { |
| 296 | return yamlEncodeValue(val) |
| 297 | } |
| 298 | |
| 299 | // YAMLParse parses a YAML string into a dynamic CEL ref.Val using the given type adapter. |
| 300 | // If adapter is nil, types.DefaultTypeAdapter is used. |