Skip to content

Commit d63a00f

Browse files
committed
Formated, doced. Also fixed few minor bugs.
1 parent 97849e0 commit d63a00f

24 files changed

+438
-402
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![rcard](https://goreportcard.com/badge/github.com/json-iterator/go)](https://goreportcard.com/report/github.com/json-iterator/go)
2+
13
jsoniter (json-iterator) is fast and flexible JSON parser available in [Java](https://github.com/json-iterator/java) and [Go](https://github.com/json-iterator/go)
24

35
# Why jsoniter?
@@ -37,7 +39,7 @@ import "github.com/json-iterator/go"
3739
iter := ParseString(`[0, [1, 2], [3, 4], 5]`)
3840
count := 0
3941
for iter.ReadArray() {
40-
iter.skip()
42+
iter.Skip()
4143
count++
4244
}
4345
fmt.Println(count) // 4

any_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package jsoniter
22

33
import (
4-
"testing"
54
"fmt"
5+
"testing"
66
)
77

88
func Test_get_from_map(t *testing.T) {
@@ -36,7 +36,7 @@ func Test_is_null(t *testing.T) {
3636
any := Any{val: []interface{}{
3737
1, 2, 3,
3838
}}
39-
if any.IsNull() != false {
39+
if any.IsNil() != false {
4040
t.FailNow()
4141
}
4242
}

feature_adapter.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ package jsoniter
22

33
import "io"
44

5-
// adapt to json/encoding api
6-
5+
// Unmarshal adapts to json/encoding APIs
76
func Unmarshal(data []byte, v interface{}) error {
87
iter := ParseBytes(data)
98
iter.Read(v)

0 commit comments

Comments
 (0)