fix: cycle import

This commit is contained in:
2025-10-13 17:35:28 +08:00
parent 1e7b658168
commit e826fec633

View File

@ -13,7 +13,6 @@ import (
"git.zhangdeman.cn/zhangdeman/consts" "git.zhangdeman.cn/zhangdeman/consts"
"git.zhangdeman.cn/zhangdeman/serialize" "git.zhangdeman.cn/zhangdeman/serialize"
"git.zhangdeman.cn/zhangdeman/wrapper/op_array"
"git.zhangdeman.cn/zhangdeman/wrapper/op_map" "git.zhangdeman.cn/zhangdeman/wrapper/op_map"
) )
@ -91,7 +90,7 @@ func (at *AnyType) ToString() string {
case consts.DataTypeSliceAny: case consts.DataTypeSliceAny:
var val []any var val []any
_ = serialize.JSON.Transition(at.data, &val) _ = serialize.JSON.Transition(at.data, &val)
return op_array.ToString(*op_array.ArrayType[any](val)).Value return serialize.JSON.MarshalForStringIgnoreError(val)
case consts.DataTypeMapAnyAny: case consts.DataTypeMapAnyAny:
easyMap := op_map.EasyMap(at.data) easyMap := op_map.EasyMap(at.data)
return easyMap.ToString() return easyMap.ToString()