ing
This commit is contained in:
parent
4d4017d214
commit
9343327d37
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user