mirror of
https://github.com/astaxie/beego.git
synced 2025-07-10 10:40:19 +00:00
golint pagination
This commit is contained in:
@ -19,8 +19,8 @@ import (
|
||||
"reflect"
|
||||
)
|
||||
|
||||
// convert any numeric value to int64
|
||||
func ToInt64(value interface{}) (d int64, err error) {
|
||||
// ToInt64 convert any numeric value to int64
|
||||
func toInt64(value interface{}) (d int64, err error) {
|
||||
val := reflect.ValueOf(value)
|
||||
switch value.(type) {
|
||||
case int, int8, int16, int32, int64:
|
||||
|
Reference in New Issue
Block a user