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

Function OverloadExamples

common/decls/decls.go:989–994  ·  view source on GitHub ↗

OverloadExamples configures example expressions for the overload.

(examples ...string)

Source from the content-addressed store, hash-verified

987
988// OverloadExamples configures example expressions for the overload.
989func OverloadExamples(examples ...string) OverloadOpt {
990 return func(o *OverloadDecl) (*OverloadDecl, error) {
991 o.doc = common.MultilineDescription(examples...)
992 return o, nil
993 }
994}
995
996// UnaryBinding provides the implementation of a unary overload. The provided function is protected by a runtime
997// type-guard which ensures runtime type agreement between the overload signature and runtime argument types.

Callers 7

OverloadExamplesFunction · 0.92
initStandardFunction · 0.92
AsFunctionOptionMethod · 0.92

Calls 1

MultilineDescriptionFunction · 0.92

Tested by 4