OverloadExamples configures example expressions for the overload.
(examples ...string)
| 902 | |
| 903 | // OverloadExamples configures example expressions for the overload. |
| 904 | func 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. |