SQLNullBoolOmitEmpty adds a string to be encoded, must be used inside an object as it will encode a key
(v *sql.NullBool)
| 343 | |
| 344 | // SQLNullBoolOmitEmpty adds a string to be encoded, must be used inside an object as it will encode a key |
| 345 | func (enc *Encoder) SQLNullBoolOmitEmpty(v *sql.NullBool) { |
| 346 | if v != nil && v.Valid && v.Bool != false { |
| 347 | enc.Bool(v.Bool) |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | // SQLNullBoolNullEmpty adds a string to be encoded, must be used inside an object as it will encode a key |
| 352 | func (enc *Encoder) SQLNullBoolNullEmpty(v *sql.NullBool) { |