diff --git a/any.go b/any.go index 9b7002a..5fa0c60 100644 --- a/any.go +++ b/any.go @@ -8,6 +8,7 @@ package wrapper import ( + "fmt" "git.zhangdeman.cn/zhangdeman/serialize" "reflect" ) @@ -96,7 +97,7 @@ func (at *AnyType) ToString() String { case DataTypePtr: return String(serialize.JSON.MarshalForString(at.data)) } - return String("") + return String(fmt.Sprintf("%v", at.data)) } // ToObject 任意类型转为对象