We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a97415 commit 8074509Copy full SHA for 8074509
om/conv.go
@@ -68,7 +68,7 @@ func (r hashConv) FromHash(fields map[string]string) error {
68
continue
69
}
70
if f.conv.StringToValue == nil {
71
- if err := json.Unmarshal(unsafe.Slice(unsafe.StringData(v), len(v)), r.entity.Field(f.idx).Addr().Interface()); err != nil {
+ if err := json.Unmarshal([]byte(v), r.entity.Field(f.idx).Addr().Interface()); err != nil {
72
return err
73
74
} else {
0 commit comments