Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit fff342f

Browse files
committed
gofmt
1 parent 8d6662b commit fff342f

File tree

72 files changed

+163
-174
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+163
-174
lines changed

any.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package jsoniter
33
import (
44
"errors"
55
"fmt"
6+
"github.com/v2pro/plz/reflect2"
67
"io"
78
"reflect"
8-
"unsafe"
9-
"github.com/v2pro/plz/reflect2"
109
"strconv"
10+
"unsafe"
1111
)
1212

1313
// Any generic object representation.

any_tests/jsoniter_any_array_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package any_tests
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/require"
76
"github.com/json-iterator/go"
7+
"github.com/stretchr/testify/require"
88
)
99

1010
func Test_read_empty_array_as_any(t *testing.T) {

any_tests/jsoniter_any_bool_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/stretchr/testify/require"
87
"github.com/json-iterator/go"
8+
"github.com/stretchr/testify/require"
99
)
1010

1111
var boolConvertMap = map[string]bool{

any_tests/jsoniter_any_float_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package any_tests
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/require"
76
"github.com/json-iterator/go"
7+
"github.com/stretchr/testify/require"
88
)
99

1010
var floatConvertMap = map[string]float64{

any_tests/jsoniter_any_int_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/stretchr/testify/require"
87
"github.com/json-iterator/go"
8+
"github.com/stretchr/testify/require"
99
)
1010

1111
var intConvertMap = map[string]int{

any_tests/jsoniter_any_map_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package any_tests
22

33
import (
4+
"github.com/json-iterator/go"
45
"github.com/stretchr/testify/require"
56
"testing"
6-
"github.com/json-iterator/go"
77
)
88

99
func Test_wrap_map(t *testing.T) {

any_tests/jsoniter_any_null_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package any_tests
22

33
import (
4+
"github.com/json-iterator/go"
45
"github.com/stretchr/testify/require"
56
"testing"
6-
"github.com/json-iterator/go"
77
)
88

99
func Test_read_null_as_any(t *testing.T) {

any_tests/jsoniter_any_object_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package any_tests
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/require"
76
"github.com/json-iterator/go"
7+
"github.com/stretchr/testify/require"
88
)
99

1010
func Test_read_object_as_any(t *testing.T) {
@@ -120,4 +120,4 @@ func Test_object_wrapper_any_get_all(t *testing.T) {
120120
should.NotContains(any.Keys(), "Field3")
121121

122122
//should.Contains(any.GetObject()["Field1"].GetArray()[0], 1)
123-
}
123+
}

any_tests/jsoniter_any_string_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package any_tests
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/require"
76
"github.com/json-iterator/go"
7+
"github.com/stretchr/testify/require"
88
)
99

1010
var stringConvertMap = map[string]string{

any_tests/jsoniter_must_be_valid_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package any_tests
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/require"
76
"github.com/json-iterator/go"
7+
"github.com/stretchr/testify/require"
88
)
99

1010
// if must be valid is useless, just drop this test

0 commit comments

Comments
 (0)