Merge pull request #211 from realzhili/fix-readme

Update README.md
This commit is contained in:
Josh Baker 2021-04-02 07:47:40 -07:00 committed by GitHub
commit 7dde6ac0f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -152,10 +152,6 @@ result.Less(token Result, caseSensitive bool) bool
The `result.Value()` function returns an `interface{}` which requires type assertion and is one of the following Go types: The `result.Value()` function returns an `interface{}` which requires type assertion and is one of the following Go types:
The `result.Array()` function returns back an array of values.
If the result represents a non-existent value, then an empty array will be returned.
If the result is not a JSON array, the return value will be an array containing one result.
```go ```go
boolean >> bool boolean >> bool
number >> float64 number >> float64
@ -165,6 +161,10 @@ array >> []interface{}
object >> map[string]interface{} object >> map[string]interface{}
``` ```
The `result.Array()` function returns back an array of values.
If the result represents a non-existent value, then an empty array will be returned.
If the result is not a JSON array, the return value will be an array containing one result.
### 64-bit integers ### 64-bit integers
The `result.Int()` and `result.Uint()` calls are capable of reading all 64 bits, allowing for large JSON integers. The `result.Int()` and `result.Uint()` calls are capable of reading all 64 bits, allowing for large JSON integers.