Overload represents the serializable format of a function overload.
| 405 | |
| 406 | // Overload represents the serializable format of a function overload. |
| 407 | type Overload struct { |
| 408 | ID string `yaml:"id" json:"id" jsonschema_description:"Overload ID formatted as function_name_type1_..._typeN or target_type_function_name_type1_..._typeN"` |
| 409 | Examples []string `yaml:"examples,omitempty" json:"examples,omitempty"` |
| 410 | Target *TypeDesc `yaml:"target,omitempty" json:"target,omitempty" jsonschema_description:"Receiver type specifier for member functions"` |
| 411 | Args []*TypeDesc `yaml:"args,omitempty" json:"args,omitempty"` |
| 412 | Return *TypeDesc `yaml:"return,omitempty" json:"return,omitempty"` |
| 413 | } |
| 414 | |
| 415 | // Validate validates the overload configuration is well-formed. |
| 416 | func (od *Overload) Validate() error { |