NewFunction creates a serializable function and overload set.
(name string, overloads ...*Overload)
| 339 | |
| 340 | // NewFunction creates a serializable function and overload set. |
| 341 | func NewFunction(name string, overloads ...*Overload) *Function { |
| 342 | return &Function{Name: name, Overloads: overloads} |
| 343 | } |
| 344 | |
| 345 | // NewFunctionWithDoc creates a serializable function and overload set. |
| 346 | func NewFunctionWithDoc(name, doc string, overloads ...*Overload) *Function { |
no outgoing calls