MakeDBool converts its argument to a *DBool, returning either DBoolTrue or DBoolFalse.
(d DBool)
| 140 | // MakeDBool converts its argument to a *DBool, returning either DBoolTrue or |
| 141 | // DBoolFalse. |
| 142 | func MakeDBool(d DBool) *DBool { |
| 143 | if d { |
| 144 | return DBoolTrue |
| 145 | } |
| 146 | return DBoolFalse |
| 147 | } |
| 148 | |
| 149 | // makeParseError returns a parse error using the provided string and type. An |
| 150 | // optional error can be provided, which will be appended to the end of the |