We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9db0096 commit dbfc81aCopy full SHA for dbfc81a
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