1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-10 10:40:19 +00:00

golint pagination

This commit is contained in:
astaxie
2015-09-14 23:17:33 +08:00
parent 7b81617a95
commit 5015614fdc
4 changed files with 21 additions and 22 deletions

View File

@ -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: