NewOverload returns a new serializable representation of a global overload.
(id string, args []*TypeDesc, ret *TypeDesc, examples ...string)
| 395 | |
| 396 | // NewOverload returns a new serializable representation of a global overload. |
| 397 | func NewOverload(id string, args []*TypeDesc, ret *TypeDesc, examples ...string) *Overload { |
| 398 | return &Overload{ID: id, Args: args, Return: ret, Examples: examples} |
| 399 | } |
| 400 | |
| 401 | // NewMemberOverload returns a new serializable representation of a member (receiver) overload. |
| 402 | func NewMemberOverload(id string, target *TypeDesc, args []*TypeDesc, ret *TypeDesc, examples ...string) *Overload { |
no outgoing calls