mirror of https://github.com/tidwall/gjson.git
Update README.md
This commit is contained in:
parent
1ff915dd81
commit
be1bb7d64a
10
README.md
10
README.md
|
@ -427,16 +427,6 @@ if result.Index > 0 {
|
||||||
|
|
||||||
This is a best-effort no allocation sub slice of the original json. This method utilizes the `result.Index` field, which is the position of the raw data in the original json. It's possible that the value of `result.Index` equals zero, in which case the `result.Raw` is converted to a `[]byte`.
|
This is a best-effort no allocation sub slice of the original json. This method utilizes the `result.Index` field, which is the position of the raw data in the original json. It's possible that the value of `result.Index` equals zero, in which case the `result.Raw` is converted to a `[]byte`.
|
||||||
|
|
||||||
## Get multiple values at once
|
|
||||||
|
|
||||||
The `GetMany` function can be used to get multiple values at the same time.
|
|
||||||
|
|
||||||
```go
|
|
||||||
results := gjson.GetMany(json, "name.first", "name.last", "age")
|
|
||||||
```
|
|
||||||
|
|
||||||
The return value is a `[]Result`, which will always contain exactly the same number of items as the input paths.
|
|
||||||
|
|
||||||
## Performance
|
## Performance
|
||||||
|
|
||||||
Benchmarks of GJSON alongside [encoding/json](https://golang.org/pkg/encoding/json/),
|
Benchmarks of GJSON alongside [encoding/json](https://golang.org/pkg/encoding/json/),
|
||||||
|
|
Loading…
Reference in New Issue