add codec.RawMessage support

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

View File

@ -61,6 +61,7 @@ func (c *iso8583Codec) Unmarshal(b []byte, v interface{}, opts ...codec.Option)
return nil
case codec.RawMessage:
copy(m, b)
return nil
}
var spec *iso8583.MessageSpec