Skip to content

Commit

Permalink
Merge pull request #211 from realzhili/fix-readme
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
tidwall committed Apr 2, 2021
2 parents dee0375 + 0301407 commit 7dde6ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -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.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
boolean >> bool
number >> float64
Expand All @@ -165,6 +161,10 @@ array >> []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

The `result.Int()` and `result.Uint()` calls are capable of reading all 64 bits, allowing for large JSON integers.
Expand Down

0 comments on commit 7dde6ac

Please sign in to comment.