AddStringNullEmpty adds a string to be encoded or skips it if it is zero value. Must be used inside a slice or array encoding (does not encode a key)
(v string)
| 44 | // AddStringNullEmpty adds a string to be encoded or skips it if it is zero value. |
| 45 | // Must be used inside a slice or array encoding (does not encode a key) |
| 46 | func (enc *Encoder) AddStringNullEmpty(v string) { |
| 47 | enc.StringNullEmpty(v) |
| 48 | } |
| 49 | |
| 50 | // AddStringKey adds a string to be encoded, must be used inside an object as it will encode a key |
| 51 | func (enc *Encoder) AddStringKey(key, v string) { |