OverloadExamples configures example expressions for the overload.
(examples ...string)
| 840 | |
| 841 | // OverloadExamples configures example expressions for the overload. |
| 842 | func 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. |