code refactor

This commit is contained in:
Ulric Qin 2022-04-25 12:08:56 +08:00
parent 640f10b396
commit 9966840114
1 changed files with 1 additions and 1 deletions

View File

@ -63,6 +63,6 @@ func ToFloat64(val interface{}) (float64, error) {
case float32:
return float64(v), nil
default:
return 0, fmt.Errorf("unparseable value %v", v)
return strconv.ParseFloat(fmt.Sprint(v), 64)
}
}