MCPcopy Create free account
hub / github.com/cel-expr/cel-go / YAMLEncode

Function YAMLEncode

ext/encoders.go:295–297  ·  view source on GitHub ↗

YAMLEncode encodes a CEL ref.Val to its YAML string representation.

(val ref.Val)

Source from the content-addressed store, hash-verified

293
294// YAMLEncode encodes a CEL ref.Val to its YAML string representation.
295func 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.

Callers 1

Calls 1

yamlEncodeValueFunction · 0.85

Tested by 1