fix: converInt function bug

Change-Id: Ifb364a943351f3762f5784fb8d84d9eb385a383f
This commit is contained in:
buyuxiang
2022-02-14 16:02:28 +08:00
parent 569ba24bcf
commit ef5f071dbc
2 changed files with 4 additions and 207 deletions

View File

@@ -186,6 +186,10 @@ func convertInt(value interface{}) (int, error) {
return int(v), nil
case uint64:
return int(v), nil
case float32:
return int(v), nil
case float64:
return int(v), nil
default:
return 0, fmt.Errorf("unsupported int convertion for %v(%T)", v, v)
}