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

Function OverloadExamples

common/decls/decls.go:894–899  ·  view source on GitHub ↗

OverloadExamples configures example expressions for the overload.

(examples ...string)

Source from the content-addressed store, hash-verified

892
893// OverloadExamples configures example expressions for the overload.
894func OverloadExamples(examples ...string) OverloadOpt {
895 return func(o *OverloadDecl) (*OverloadDecl, error) {
896 o.doc = common.MultilineDescription(examples...)
897 return o, nil
898 }
899}
900
901// UnaryBinding provides the implementation of a unary overload. The provided function is protected by a runtime
902// 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