AddBoolKey adds a bool to be encoded, must be used inside an object as it will encode a key.
(key string, v bool)
| 44 | |
| 45 | // AddBoolKey adds a bool to be encoded, must be used inside an object as it will encode a key. |
| 46 | func (enc *Encoder) AddBoolKey(key string, v bool) { |
| 47 | enc.BoolKey(key, v) |
| 48 | } |
| 49 | |
| 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. |