FunctionDocs configures documentation from a list of strings separated by newlines.
(docs ...string)
| 443 | |
| 444 | // FunctionDocs configures documentation from a list of strings separated by newlines. |
| 445 | func FunctionDocs(docs ...string) FunctionOpt { |
| 446 | return func(fn *FunctionDecl) (*FunctionDecl, error) { |
| 447 | fn.doc = common.MultilineDescription(docs...) |
| 448 | return fn, nil |
| 449 | } |
| 450 | } |
| 451 | |
| 452 | // DisableTypeGuards disables automatically generated function invocation guards on direct overload calls. |
| 453 | // Type guards remain on during dynamic dispatch for parsed-only expressions. |