NewExampleDoc creates a new Doc struct specifically for holding an example.
(ex string)
| 159 | |
| 160 | // NewExampleDoc creates a new Doc struct specifically for holding an example. |
| 161 | func NewExampleDoc(ex string) *Doc { |
| 162 | return &Doc{ |
| 163 | Kind: DocExample, |
| 164 | Description: ex, |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | // NewFieldDoc creates a new Doc struct for documenting a struct field. |
| 169 | func NewFieldDoc(name, celType, description string, examples ...*Doc) *Doc { |
no outgoing calls