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

Function OverloadExamples

common/decls/decls.go:904–909  ·  view source on GitHub ↗

OverloadExamples configures example expressions for the overload.

(examples ...string)

Source from the content-addressed store, hash-verified

902
903// OverloadExamples configures example expressions for the overload.
904func OverloadExamples(examples ...string) OverloadOpt {
905 return func(o *OverloadDecl) (*OverloadDecl, error) {
906 o.doc = common.MultilineDescription(examples...)
907 return o, nil
908 }
909}
910
911// UnaryBinding provides the implementation of a unary overload. The provided function is protected by a runtime
912// type-guard which ensures runtime type agreement between the overload signature and runtime argument types.

Callers 7

OverloadExamplesFunction · 0.92
initFunction · 0.92
AsFunctionOptionMethod · 0.92

Calls 1

MultilineDescriptionFunction · 0.92

Tested by 4