Skip to content

Commit 455b3f8

Browse files
committed
move reflect2 from plz to modern-go
1 parent 2a93f90 commit 455b3f8

21 files changed

+30
-65
lines changed

Gopkg.lock

Lines changed: 8 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,8 @@
1919
# name = "github.com/x/y"
2020
# version = "2.4.0"
2121

22+
ignored = ["github.com/davecgh/go-spew*","github.com/google/gofuzz*","github.com/stretchr/testify*"]
2223

2324
[[constraint]]
24-
name = "github.com/davecgh/go-spew"
25-
version = "1.1.0"
26-
27-
[[constraint]]
28-
branch = "master"
29-
name = "github.com/google/gofuzz"
30-
31-
[[constraint]]
32-
name = "github.com/stretchr/testify"
33-
version = "1.1.4"
34-
35-
[[constraint]]
36-
name = "github.com/v2pro/plz"
37-
version = "0.9.1"
25+
name = "github.com/modern-go/reflect2"
26+
version = "1.0.0"

any.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package jsoniter
33
import (
44
"errors"
55
"fmt"
6-
"github.com/v2pro/plz/reflect2"
6+
"github.com/modern-go/reflect2"
77
"io"
88
"reflect"
99
"strconv"

config.go

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

33
import (
44
"encoding/json"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"io"
77
"sync"
88
"unsafe"

extension_tests/extension_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package test
33
import (
44
"github.com/json-iterator/go"
55
"github.com/stretchr/testify/require"
6-
"github.com/v2pro/plz/reflect2"
6+
"github.com/modern-go/reflect2"
77
"reflect"
88
"strconv"
99
"testing"

extra/binary_as_string_codec.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"github.com/json-iterator/go"
55
"unsafe"
66
"unicode/utf8"
7-
"github.com/v2pro/plz/reflect2"
7+
"github.com/modern-go/reflect2"
88
)
99

1010
// safeSet holds the value true if the ASCII character with the given array

extra/fuzzy_decoder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"unsafe"
1010

1111
"github.com/json-iterator/go"
12-
"github.com/v2pro/plz/reflect2"
12+
"github.com/modern-go/reflect2"
1313
)
1414

1515
const maxUint = ^uint(0)

reflect.go

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

33
import (
44
"fmt"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"reflect"
77
"unsafe"
88
)

reflect_array.go

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

33
import (
44
"fmt"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"io"
77
"unsafe"
88
)

reflect_dynamic.go

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

33
import (
4-
"github.com/v2pro/plz/reflect2"
4+
"github.com/modern-go/reflect2"
55
"reflect"
66
"unsafe"
77
)

reflect_extension.go

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

33
import (
44
"fmt"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"reflect"
77
"sort"
88
"strings"

reflect_json_number.go

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

33
import (
44
"encoding/json"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"strconv"
77
"unsafe"
88
)

reflect_json_raw_message.go

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

33
import (
44
"encoding/json"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"unsafe"
77
)
88

reflect_map.go

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

33
import (
44
"fmt"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"reflect"
77
"sort"
88
"unsafe"

reflect_marshaler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package jsoniter
33
import (
44
"encoding"
55
"encoding/json"
6-
"github.com/v2pro/plz/reflect2"
6+
"github.com/modern-go/reflect2"
77
"unsafe"
88
)
99

reflect_native.go

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

33
import (
44
"encoding/base64"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"reflect"
77
"strconv"
88
"unsafe"

reflect_optional.go

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

33
import (
4-
"github.com/v2pro/plz/reflect2"
4+
"github.com/modern-go/reflect2"
55
"reflect"
66
"unsafe"
77
)

reflect_slice.go

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

33
import (
44
"fmt"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"io"
77
"unsafe"
88
)

reflect_struct_decoder.go

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

33
import (
44
"fmt"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"io"
77
"strings"
88
"unsafe"

reflect_struct_encoder.go

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

33
import (
44
"fmt"
5-
"github.com/v2pro/plz/reflect2"
5+
"github.com/modern-go/reflect2"
66
"io"
77
"reflect"
88
"unsafe"

value_tests/value_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
"github.com/json-iterator/go"
77
"github.com/stretchr/testify/require"
8-
"github.com/v2pro/plz/reflect2"
8+
"github.com/modern-go/reflect2"
99
"testing"
1010
)
1111

0 commit comments

Comments
 (0)