mirror of
https://github.com/json-iterator/go.git
synced 2025-04-20 11:28:49 +02:00
Update README.md
modify the useage of function Read().
This commit is contained in:
parent
6880076b44
commit
232e0df179
@ -23,9 +23,8 @@ Parse with Go bind-api
|
|||||||
```go
|
```go
|
||||||
import "github.com/json-iterator/go"
|
import "github.com/json-iterator/go"
|
||||||
iter := jsoniter.ParseString(`[0,1,2,3]`)
|
iter := jsoniter.ParseString(`[0,1,2,3]`)
|
||||||
val := []int{}
|
var := iter.Read()
|
||||||
iter.Read(&val)
|
fmt.Println(val)
|
||||||
fmt.Println(val[3])
|
|
||||||
```
|
```
|
||||||
|
|
||||||
# Iterator-API for quick extraction
|
# Iterator-API for quick extraction
|
||||||
@ -66,4 +65,4 @@ go get github.com/json-iterator/go
|
|||||||
|
|
||||||
# Contribution Welcomed !
|
# Contribution Welcomed !
|
||||||
|
|
||||||
Report issue or pull request, or email taowen@gmail.com, or [](https://gitter.im/json-iterator/Lobby)
|
Report issue or pull request, or email taowen@gmail.com, or [](https://gitter.im/json-iterator/Lobby)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user