1
0
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:
smart 2017-02-04 14:34:00 +08:00 committed by GitHub
parent 6880076b44
commit 232e0df179

View File

@ -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