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

Function NewConstValue

interpreter/interpretable.go:299–304  ·  view source on GitHub ↗

NewConstValue creates a new constant valued Interpretable.

(id int64, val ref.Val)

Source from the content-addressed store, hash-verified

297
298// NewConstValue creates a new constant valued Interpretable.
299func NewConstValue(id int64, val ref.Val) InterpretableConst {
300 return &evalConst{
301 id: id,
302 val: val,
303 }
304}
305
306type evalConst struct {
307 id int64

Calls

no outgoing calls