SetCustomStructTag causes the Encoder to use a custom struct tag as fallback option if there is no msgpack tag.
(tag string)
| 146 | // SetCustomStructTag causes the Encoder to use a custom struct tag as |
| 147 | // fallback option if there is no msgpack tag. |
| 148 | func (e *Encoder) SetCustomStructTag(tag string) { |
| 149 | e.structTag = tag |
| 150 | } |
| 151 | |
| 152 | // SetOmitEmpty causes the Encoder to omit empty values by default. |
| 153 | func (e *Encoder) SetOmitEmpty(on bool) { |
no outgoing calls