MakeDBool converts its argument to a *DBool, returning either DBoolTrue or DBoolFalse.
(d DBool)
| 248 | // MakeDBool converts its argument to a *DBool, returning either DBoolTrue or |
| 249 | // DBoolFalse. |
| 250 | func MakeDBool(d DBool) *DBool { |
| 251 | if d { |
| 252 | return DBoolTrue |
| 253 | } |
| 254 | return DBoolFalse |
| 255 | } |
| 256 | |
| 257 | // MustBeDBool attempts to retrieve a DBool from an Expr, panicking if the |
| 258 | // assertion fails. |
no outgoing calls
no test coverage detected
searching dependent graphs…