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

Method LiteralBool

cel/macro.go:387–389  ·  view source on GitHub ↗

LiteralBool creates an Expr value for a bool literal.

(value bool)

Source from the content-addressed store, hash-verified

385
386// LiteralBool creates an Expr value for a bool literal.
387func (ah *adaptingHelper) LiteralBool(value bool) *exprpb.Expr {
388 return mustAdaptToProto(ah.modernHelper.NewLiteral(types.Bool(value)))
389}
390
391// LiteralBytes creates an Expr value for a byte literal.
392func (ah *adaptingHelper) LiteralBytes(value []byte) *exprpb.Expr {

Callers

nothing calls this directly

Calls 3

BoolTypeAlias · 0.92
mustAdaptToProtoFunction · 0.85
NewLiteralMethod · 0.65

Tested by

no test coverage detected