This commit is contained in:
cdle
2023-06-11 16:46:24 +08:00
parent 760c165be0
commit 23cbd154ed
+4
View File
@@ -436,6 +436,10 @@ func Itoa(i interface{}) string {
return strconv.Itoa(int(i))
case string:
return i
case float32:
return strconv.Itoa(int(i))
case float64:
return strconv.Itoa(int(i))
default:
return fmt.Sprint(i)
}