(enc *msgpack.Encoder)
| 99 | ) |
| 100 | |
| 101 | func (s *CustomEncoder) EncodeMsgpack(enc *msgpack.Encoder) error { |
| 102 | if s == nil { |
| 103 | return enc.EncodeNil() |
| 104 | } |
| 105 | return enc.EncodeMulti(s.str, s.ref, s.num) |
| 106 | } |
| 107 | |
| 108 | func (s *CustomEncoder) DecodeMsgpack(dec *msgpack.Decoder) error { |
| 109 | return dec.DecodeMulti(&s.str, &s.ref, &s.num) |
nothing calls this directly
no test coverage detected