Variable creates an instance of a variable declaration with a variable name and type.
(name string, t *Type)
| 142 | |
| 143 | // Variable creates an instance of a variable declaration with a variable name and type. |
| 144 | func Variable(name string, t *Type) EnvOption { |
| 145 | return VariableWithDoc(name, t, "") |
| 146 | } |
| 147 | |
| 148 | // VariableWithDoc creates an instance of a variable declaration with a variable name, type, and doc string. |
| 149 | func VariableWithDoc(name string, t *Type, doc string) EnvOption { |