update to latest micro

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2024-09-17 17:36:45 +03:00
parent b19b8813b6
commit f250aeb50d

View File

@ -211,7 +211,7 @@ func (c *jsonCodecV2) Marshal(b []byte, v interface{}, opts ...codec.Option) ([]
}
var err error
b, err = json.Append(b, v, getMarshalFlags(marshalOptions))
b, err = json.Append(b[:0], v, getMarshalFlags(marshalOptions))
return b, err
}