ugorji / go

idiomatic codec and rpc lib for msgpack, cbor, json, etc. msgpack.org[Go]
MIT License
1.86k stars 295 forks source link

Decode bin as []byte, always. #327

Closed csm closed 4 years ago

csm commented 4 years ago

Fixes #315

ugorji commented 4 years ago

See https://github.com/ugorji/go/issues/315#issuecomment-689313721

You need to set WriteExt=true so that the new spec is honored. When we built this library, most uses were using the old spec and the new spec was in its infancy, so it is an opt-in. Opt into it by setting the flag WriteExt=true.