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

Function NewOverload

common/env/env.go:397–399  ·  view source on GitHub ↗

NewOverload returns a new serializable representation of a global overload.

(id string, args []*TypeDesc, ret *TypeDesc, examples ...string)

Source from the content-addressed store, hash-verified

395
396// NewOverload returns a new serializable representation of a global overload.
397func NewOverload(id string, args []*TypeDesc, ret *TypeDesc, examples ...string) *Overload {
398 return &Overload{ID: id, Args: args, Return: ret, Examples: examples}
399}
400
401// NewMemberOverload returns a new serializable representation of a member (receiver) overload.
402func NewMemberOverload(id string, target *TypeDesc, args []*TypeDesc, ret *TypeDesc, examples ...string) *Overload {

Callers 7

protoDeclToFunctionFunction · 0.92
TestEnvToConfigFunction · 0.92
TestEnvFromConfigErrorsFunction · 0.92
AddFunctionDeclsMethod · 0.70
TestConfigFunction · 0.70

Calls

no outgoing calls

Tested by 5

TestEnvToConfigFunction · 0.74
TestEnvFromConfigErrorsFunction · 0.74
TestConfigFunction · 0.56