Int64 returns the number as an int64.
()
| 195 | |
| 196 | // Int64 returns the number as an int64. |
| 197 | func (n Number) Int64() (int64, error) { |
| 198 | return strconv.ParseInt(string(n), 10, 64) |
| 199 | } |
| 200 | |
| 201 | // isValidNumber reports whether s is a valid JSON number literal. |
| 202 | func isValidNumber(s string) bool { |
no outgoing calls