(e *Encoder, v reflect.Value)
| 182 | } |
| 183 | |
| 184 | func encodeErrorValue(e *Encoder, v reflect.Value) error { |
| 185 | if v.IsNil() { |
| 186 | return e.EncodeNil() |
| 187 | } |
| 188 | return e.EncodeString(v.Interface().(error).Error()) |
| 189 | } |
| 190 | |
| 191 | func encodeUnsupportedValue(e *Encoder, v reflect.Value) error { |
| 192 | return fmt.Errorf("msgpack: Encode(unsupported %s)", v.Type()) |
nothing calls this directly
no test coverage detected
searching dependent graphs…