add codec.RawMessage support
All checks were successful
test / test (push) Successful in 2m38s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-12-23 20:38:59 +03:00
parent aaedc8569a
commit 03713a136f

View File

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