NewOverloadDoc creates a new Doc struct for a function example.
(id, signature string, examples ...*Doc)
| 139 | |
| 140 | // NewOverloadDoc creates a new Doc struct for a function example. |
| 141 | func NewOverloadDoc(id, signature string, examples ...*Doc) *Doc { |
| 142 | return &Doc{ |
| 143 | Kind: DocOverload, |
| 144 | Name: id, |
| 145 | Signature: signature, |
| 146 | Children: examples, |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | // NewMacroDoc creates a new Doc struct for documenting a macro. |
| 151 | func NewMacroDoc(name, description string, examples ...*Doc) *Doc { |
no outgoing calls