|
|
@ -197,6 +197,23 @@ func (data Data) GetInt64(key string) (int64, error) {
|
|
|
|
switch value.(type) {
|
|
|
|
switch value.(type) {
|
|
|
|
case int:
|
|
|
|
case int:
|
|
|
|
return int64(value.(int)), nil
|
|
|
|
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:
|
|
|
|
case int64:
|
|
|
|
return value.(int64), nil
|
|
|
|
return value.(int64), nil
|
|
|
|