msgpack icon indicating copy to clipboard operation
msgpack copied to clipboard

msgpack.org[Go] MessagePack encoding for Golang

Results 46 msgpack issues
Sort by recently updated
recently updated
newest added

env: go 1.8 ubuntu 20 code: ```go type Data struct { Key []byte `json:"key"` } func (d *Data) MarshalBinary() ([]byte, error) { return msgpack.Marshal(d) } func (d *Data) UnmarshalBinary(data []byte)...

The interface field isn't set to `nil` when msgpack code is `nil`. ## Expected Behavior The field value of the struct is set to `nil`. ## Current Behavior Application is...

This code will panic, And I found it is because of `github.com/vmihailenco/msgpack/v5/decode_ value.go:130`, Therefore, if I replace S1 with a null pointer, there will be no panic. Is this a...

Why **NewDecoder** return zero value ?, and not return value from jph, but if i try with json encoding, i'm get response back from jph like this `{1 Leanne Graham...

HI, Facing an issue while using the plugin to marshal / unmarshal a non initialized empty struct (only declared) Below code shows multiple type of objects getting marshalled / unmarshalled...

When a time.Time struct is supplied, the decode function goes in another path, and the UTC timezone is set on the empty time object Added this now to the path...

Hello, here at @AlpineIQ we use msgpack extensively, however as some of our caches grew, we hit some roadblocks with memory for decoding. I took a crack at the decoder...

fixed when use msgpack.rawmessage panic reflect: reflect.Value.Set using unaddressable value

Unmarshal a byte array that was generated by marshaling an empty time struct If the unmarshal will receive an interface, this interface will eventually contain an empty time struct but...