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

Function OverloadExamples

common/decls/decls.go:842–847  ·  view source on GitHub ↗

OverloadExamples configures example expressions for the overload.

(examples ...string)

Source from the content-addressed store, hash-verified

840
841// OverloadExamples configures example expressions for the overload.
842func OverloadExamples(examples ...string) OverloadOpt {
843 return func(o *OverloadDecl) (*OverloadDecl, error) {
844 o.doc = common.MultilineDescription(examples...)
845 return o, nil
846 }
847}
848
849// UnaryBinding provides the implementation of a unary overload. The provided function is protected by a runtime
850// 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