From d5622fe0ca55f3ddea0f05c26b32aa9b518df76a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 2 Mar 2025 21:33:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E7=BB=84=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- array.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/array.go b/array.go index 5dc3443..2793340 100644 --- a/array.go +++ b/array.go @@ -55,8 +55,8 @@ func (at *Array[Bt]) IsNil() bool { func (at *Array[Bt]) ToStringSlice() []string { list := make([]string, 0) for _, item := range at.value { - byteData, _ := json.Marshal(item) - list = append(list, strings.Trim(string(byteData), "\"")) + str := AnyDataType(item).ToString().Value() + list = append(list, str) } return list }