NewVariableDoc creates a new Doc struct specifically for documenting a variable.
(name, celType, description string)
| 119 | |
| 120 | // NewVariableDoc creates a new Doc struct specifically for documenting a variable. |
| 121 | func NewVariableDoc(name, celType, description string) *Doc { |
| 122 | return &Doc{ |
| 123 | Kind: DocVariable, |
| 124 | Name: name, |
| 125 | Type: celType, |
| 126 | Description: ParseDescription(description), |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | // NewFunctionDoc creates a new Doc struct for documenting a function. |
| 131 | func NewFunctionDoc(name, description string, overloads ...*Doc) *Doc { |