Overload defines a new global overload with an overload id, argument types, and result type. Through the use of OverloadOpt options, the overload may also be configured with a binding, an operand trait, and to be non-strict. Note: function bindings should be commonly configured with Overload instan
(overloadID string, args []*types.Type, resultType *types.Type, opts ...OverloadOpt)
| 587 | // Note: function bindings should be commonly configured with Overload instances whereas operand traits and |
| 588 | // strict-ness should be rare occurrences. |
| 589 | func Overload(overloadID string, |
| 590 | args []*types.Type, resultType *types.Type, |
| 591 | opts ...OverloadOpt) FunctionOpt { |
| 592 | return newOverload(overloadID, false, args, resultType, opts...) |
| 593 | } |
| 594 | |
| 595 | // MemberOverload defines a new receiver-style overload (or member function) with an overload id, argument types, |
| 596 | // and result type. Through the use of OverloadOpt options, the overload may also be configured with a binding, |