mirror of
https://github.com/json-iterator/go.git
synced 2024-11-27 08:30:57 +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
|
||||
import "github.com/json-iterator/go"
|
||||
iter := jsoniter.ParseString(`[0,1,2,3]`)
|
||||
val := []int{}
|
||||
iter.Read(&val)
|
||||
fmt.Println(val[3])
|
||||
var := iter.Read()
|
||||
fmt.Println(val)
|
||||
```
|
||||
|
||||
# Iterator-API for quick extraction
|
||||
@ -66,4 +65,4 @@ go get github.com/json-iterator/go
|
||||
|
||||
# Contribution Welcomed !
|
||||
|
||||
Report issue or pull request, or email taowen@gmail.com, or [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/json-iterator/Lobby)
|
||||
Report issue or pull request, or email taowen@gmail.com, or [![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/json-iterator/Lobby)
|
||||
|
Loading…
Reference in New Issue
Block a user