1
0
mirror of https://github.com/json-iterator/go.git synced 2025-11-26 22:40:13 +02:00

Merge pull request #8 from smartczy/patch-1

Update README.md
This commit is contained in:
Tao Wen
2017-02-04 07:25:34 -06:00
committed by GitHub

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