From bff3f07fe725df6c02c80e13dfb0eef07948c68f Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Thu, 8 Feb 2018 12:21:08 -0700 Subject: [PATCH] mention large integer support --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index d2c5379..a41b33c 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,15 @@ array >> []interface{} object >> map[string]interface{} ``` +### 64-bit integers + +The `result.Int()` and `result.Uint()` calls are capable of reading all 64 bits, allowing for large JSON integers. + +```go +result.Int() int64 // -9223372036854775808 to 9223372036854775807 +result.Uint() int64 // 0 to 18446744073709551615 +``` + ## Get nested array values Suppose you want all the last names from the following json: