MakeDBool converts its argument to a *DBool, returning either DBoolTrue or DBoolFalse.
(d DBool)
| 216 | // MakeDBool converts its argument to a *DBool, returning either DBoolTrue or |
| 217 | // DBoolFalse. |
| 218 | func MakeDBool(d DBool) *DBool { |
| 219 | if d { |
| 220 | return DBoolTrue |
| 221 | } |
| 222 | return DBoolFalse |
| 223 | } |
| 224 | |
| 225 | // MustBeDBool attempts to retrieve a DBool from an Expr, panicking if the |
| 226 | // assertion fails. |
no outgoing calls
no test coverage detected
searching dependent graphs…