OverloadExamples configures example expressions for the overload.
(examples ...string)
| 987 | |
| 988 | // OverloadExamples configures example expressions for the overload. |
| 989 | func 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. |