This commit is contained in:
crusader 2018-07-04 16:43:17 +09:00
parent 4d4017d214
commit 9343327d37

View File

@ -12,3 +12,7 @@ func NumberToInt(n json.Number) (int, error) {
}
return int(n64), nil
}
func NumberToInt64(n json.Number) (int64, error) {
return strconv.ParseInt(n.String(), 10, 64)
}