From f250aeb50d32362e34a9f337007c5505fe90f8df Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Tue, 17 Sep 2024 17:36:45 +0300 Subject: [PATCH] update to latest micro Signed-off-by: Vasiliy Tolstov --- json/json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/json.go b/json/json.go index 71ea0f1..296e863 100644 --- a/json/json.go +++ b/json/json.go @@ -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 }