优化数组字符串处理

This commit is contained in:
zhangdeman committed 2025-03-02 21:33:16 +08:00
1 parent c757e551a8
commit d5622fe0ca
1 file changed
+2 -2
+2 -2
View File
@@ -55,8 +55,8 @@ func (at *Array[Bt]) IsNil() bool {
func (at *Array[Bt]) ToStringSlice() []string { func (at *Array[Bt]) ToStringSlice() []string {
list := make([]string, 0) list := make([]string, 0)
for _, item := range at.value { for _, item := range at.value {
byteData, _ := json.Marshal(item) str := AnyDataType(item).ToString().Value()
list = append(list, strings.Trim(string(byteData), "\"")) list = append(list, str)
} }
return list return list
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.