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

Method LiteralString

cel/macro.go:407–409  ·  view source on GitHub ↗

LiteralString creates am Expr value for a string literal.

(value string)

Source from the content-addressed store, hash-verified

405
406// LiteralString creates am Expr value for a string literal.
407func (ah *adaptingHelper) LiteralString(value string) *exprpb.Expr {
408 return mustAdaptToProto(ah.modernHelper.NewLiteral(types.String(value)))
409}
410
411// LiteralUint creates an Expr value for a uint literal.
412func (ah *adaptingHelper) LiteralUint(value uint64) *exprpb.Expr {

Callers

nothing calls this directly

Calls 3

StringTypeAlias · 0.92
mustAdaptToProtoFunction · 0.85
NewLiteralMethod · 0.65

Tested by

no test coverage detected