code refactor
This commit is contained in:
parent
640f10b396
commit
9966840114
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue