FunctionDocs configures documentation from a list of strings separated by newlines.
(docs ...string)
| 482 | |
| 483 | // FunctionDocs configures documentation from a list of strings separated by newlines. |
| 484 | func FunctionDocs(docs ...string) FunctionOpt { |
| 485 | return func(fn *FunctionDecl) (*FunctionDecl, error) { |
| 486 | fn.doc = common.MultilineDescription(docs...) |
| 487 | return fn, nil |
| 488 | } |
| 489 | } |
| 490 | |
| 491 | // DisableTypeGuards disables automatically generated function invocation guards on direct overload calls. |
| 492 | // Type guards remain on during dynamic dispatch for parsed-only expressions. |