number := "12.123" cast.ToInt(number) // 0 错误 cast.ToInt(cast.ToFloat32(number)) // 12 正确
number := "08" cast.ToInt(number) // 0 错误 num, _ := strconv.Atoi(second) // 8 正确