优化any转string

This commit is contained in:
Yun
2025-09-02 15:43:26 +08:00
parent ab8524e5ef
commit 15e1ed41f4
5 changed files with 297 additions and 70 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ func AutoConv(toType string, target interface{}) (interface{}, error) {
case "int32":
v, err = ToInt32(target)
case "string":
v, err = ToString(target)
v = ToString(target)
}
return v, err
}