Fix GetInt64 type error

tags/v1.0.17 v1.0.17
Stanly 3 years ago
parent dfc1397b9b
commit c015dceee0

@ -197,6 +197,23 @@ func (data Data) GetInt64(key string) (int64, error) {
switch value.(type) {
case int:
return int64(value.(int)), nil
case uint:
return int64(value.(uint)), nil
case int8:
return int64(value.(int8)), nil
case uint8:
return int64(value.(uint8)), nil
case int16:
return int64(value.(int16)), nil
case uint16:
return int64(value.(uint16)), nil
case int32:
return int64(value.(int32)), nil
case uint32:
return int64(value.(uint32)), nil
case int64:
return value.(int64), nil

Loading…
Cancel
Save