Compare commits

...

1 Commits
v3.10.2 ... v3

Author SHA1 Message Date
03713a136f add codec.RawMessage support
All checks were successful
test / test (push) Successful in 2m38s
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-12-23 20:38:59 +03:00

View File

@ -116,6 +116,7 @@ func (c *jsonCodec) Unmarshal(b []byte, v interface{}, opts ...codec.Option) err
return nil return nil
case codec.RawMessage: case codec.RawMessage:
copy(m, b) copy(m, b)
return nil
} }
unmarshalOptions := DefaultUnmarshalOptions unmarshalOptions := DefaultUnmarshalOptions