AddBoolKeyOmitEmpty adds a bool to be encoded and skips if it is zero value. Must be used inside an object as it will encode a key.
(key string, v bool)
| 50 | // AddBoolKeyOmitEmpty adds a bool to be encoded and skips if it is zero value. |
| 51 | // Must be used inside an object as it will encode a key. |
| 52 | func (enc *Encoder) AddBoolKeyOmitEmpty(key string, v bool) { |
| 53 | enc.BoolKeyOmitEmpty(key, v) |
| 54 | } |
| 55 | |
| 56 | // AddBoolKeyNullEmpty adds a bool to be encoded and encodes `null` if it is zero value. |
| 57 | // Must be used inside an object as it will encode a key. |