NewVariableWithDoc returns a serializable variable from a name, type definition, and doc string.
(name string, t *TypeDesc, doc string)
| 247 | |
| 248 | // NewVariableWithDoc returns a serializable variable from a name, type definition, and doc string. |
| 249 | func NewVariableWithDoc(name string, t *TypeDesc, doc string) *Variable { |
| 250 | return &Variable{Name: name, TypeDesc: t, Description: doc} |
| 251 | } |
| 252 | |
| 253 | // Variable represents a typed variable declaration which will be published via the |
| 254 | // cel.VariableDecls() option. |
no outgoing calls