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

Method LiteralInt

cel/macro.go:402–404  ·  view source on GitHub ↗

LiteralInt creates an Expr value for an int literal.

(value int64)

Source from the content-addressed store, hash-verified

400
401// LiteralInt creates an Expr value for an int literal.
402func (ah *adaptingHelper) LiteralInt(value int64) *exprpb.Expr {
403 return mustAdaptToProto(ah.modernHelper.NewLiteral(types.Int(value)))
404}
405
406// LiteralString creates am Expr value for a string literal.
407func (ah *adaptingHelper) LiteralString(value string) *exprpb.Expr {

Callers

nothing calls this directly

Calls 3

IntTypeAlias · 0.92
mustAdaptToProtoFunction · 0.85
NewLiteralMethod · 0.65

Tested by

no test coverage detected