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

Function Overload

cel/decls.go:307–309  ·  view source on GitHub ↗

Overload defines a new global overload with an overload id, argument types, and result type. Through the use of OverloadOpt options, the overload may also be configured with a binding, an operand trait, and to be non-strict. Note: function bindings should be commonly configured with Overload instan

(overloadID string, args []*Type, resultType *Type, opts ...OverloadOpt)

Source from the content-addressed store, hash-verified

305// Note: function bindings should be commonly configured with Overload instances whereas operand traits and
306// strict-ness should be rare occurrences.
307func Overload(overloadID string, args []*Type, resultType *Type, opts ...OverloadOpt) FunctionOpt {
308 return decls.Overload(overloadID, args, resultType, opts...)
309}
310
311// MemberOverload defines a new receiver-style overload (or member function) with an overload id, argument types,
312// and result type. Through the use of OverloadOpt options, the overload may also be configured with a binding,

Callers 15

locationCodeEnvOptionFunction · 0.92
fnEnvOptionFunction · 0.92
helper_test.goFile · 0.92
locationCodeEnvOptionFunction · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92
CompileOptionsMethod · 0.92

Calls 1

OverloadFunction · 0.92