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

Function RefValToExprValue

cel/io.go:131–133  ·  view source on GitHub ↗

RefValToExprValue converts between ref.Val and google.api.expr.v1alpha1.ExprValue. The result ExprValue is the serialized proto form.

(res ref.Val)

Source from the content-addressed store, hash-verified

129// RefValToExprValue converts between ref.Val and google.api.expr.v1alpha1.ExprValue.
130// The result ExprValue is the serialized proto form.
131func RefValToExprValue(res ref.Val) (*exprpb.ExprValue, error) {
132 return ExprValueAsAlphaProto(res)
133}
134
135// ExprValueAsAlphaProto converts between ref.Val and google.api.expr.v1alpha1.ExprValue.
136// The result ExprValue is the serialized proto form.

Callers 1

Calls 1

ExprValueAsAlphaProtoFunction · 0.85

Tested by 1