Prechádzať zdrojové kódy

move reflect2 from plz to modern-go

Tao Wen 7 rokov pred
rodič
commit
455b3f8bb8

+ 8 - 32
Gopkg.lock

@@ -2,44 +2,20 @@
 
 
 [[projects]]
-  name = "github.com/davecgh/go-spew"
-  packages = ["spew"]
-  revision = "346938d642f2ec3594ed81d874461961cd0faa76"
-  version = "v1.1.0"
-
-[[projects]]
-  branch = "master"
-  name = "github.com/google/gofuzz"
+  name = "github.com/modern-go/concurrent"
   packages = ["."]
-  revision = "24818f796faf91cd76ec7bddd72458fbced7a6c1"
-
-[[projects]]
-  name = "github.com/pmezard/go-difflib"
-  packages = ["difflib"]
-  revision = "792786c7400a136282c1664665ae0a8db921c6c2"
-  version = "v1.0.0"
+  revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a"
+  version = "1.0.0"
 
 [[projects]]
-  name = "github.com/stretchr/testify"
-  packages = [
-    "assert",
-    "require"
-  ]
-  revision = "12b6f73e6084dad08a7c6e575284b177ecafbc71"
-  version = "v1.2.1"
-
-[[projects]]
-  name = "github.com/v2pro/plz"
-  packages = [
-    "concurrent",
-    "reflect2"
-  ]
-  revision = "10fc95fad3224a032229e59f6e7023137d82b526"
-  version = "0.9.1"
+  name = "github.com/modern-go/reflect2"
+  packages = ["."]
+  revision = "1df9eeb2bb81f327b96228865c5687bc2194af3f"
+  version = "1.0.0"
 
 [solve-meta]
   analyzer-name = "dep"
   analyzer-version = 1
-  inputs-digest = "64fe3937a1afce5cb551c06ff7109065c971643e082512243d1071bab428ff14"
+  inputs-digest = "ac7003b5a981716353a43055ab7d4c5357403cb30a60de2dbdeb446c1544beaa"
   solver-name = "gps-cdcl"
   solver-version = 1

+ 3 - 14
Gopkg.toml

@@ -19,19 +19,8 @@
 #  name = "github.com/x/y"
 #  version = "2.4.0"
 
+ignored = ["github.com/davecgh/go-spew*","github.com/google/gofuzz*","github.com/stretchr/testify*"]
 
 [[constraint]]
-  name = "github.com/davecgh/go-spew"
-  version = "1.1.0"
-
-[[constraint]]
-  branch = "master"
-  name = "github.com/google/gofuzz"
-
-[[constraint]]
-  name = "github.com/stretchr/testify"
-  version = "1.1.4"
-
-[[constraint]]
-  name = "github.com/v2pro/plz"
-  version = "0.9.1"
+  name = "github.com/modern-go/reflect2"
+  version = "1.0.0"

+ 1 - 1
any.go

@@ -3,7 +3,7 @@ package jsoniter
 import (
 	"errors"
 	"fmt"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"io"
 	"reflect"
 	"strconv"

+ 1 - 1
config.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"encoding/json"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"io"
 	"sync"
 	"unsafe"

+ 1 - 1
extension_tests/extension_test.go

@@ -3,7 +3,7 @@ package test
 import (
 	"github.com/json-iterator/go"
 	"github.com/stretchr/testify/require"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"reflect"
 	"strconv"
 	"testing"

+ 1 - 1
extra/binary_as_string_codec.go

@@ -4,7 +4,7 @@ import (
 	"github.com/json-iterator/go"
 	"unsafe"
 	"unicode/utf8"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 )
 
 // safeSet holds the value true if the ASCII character with the given array

+ 1 - 1
extra/fuzzy_decoder.go

@@ -9,7 +9,7 @@ import (
 	"unsafe"
 
 	"github.com/json-iterator/go"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 )
 
 const maxUint = ^uint(0)

+ 1 - 1
reflect.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"fmt"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"reflect"
 	"unsafe"
 )

+ 1 - 1
reflect_array.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"fmt"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"io"
 	"unsafe"
 )

+ 1 - 1
reflect_dynamic.go

@@ -1,7 +1,7 @@
 package jsoniter
 
 import (
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"reflect"
 	"unsafe"
 )

+ 1 - 1
reflect_extension.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"fmt"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"reflect"
 	"sort"
 	"strings"

+ 1 - 1
reflect_json_number.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"encoding/json"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"strconv"
 	"unsafe"
 )

+ 1 - 1
reflect_json_raw_message.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"encoding/json"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"unsafe"
 )
 

+ 1 - 1
reflect_map.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"fmt"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"reflect"
 	"sort"
 	"unsafe"

+ 1 - 1
reflect_marshaler.go

@@ -3,7 +3,7 @@ package jsoniter
 import (
 	"encoding"
 	"encoding/json"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"unsafe"
 )
 

+ 1 - 1
reflect_native.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"encoding/base64"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"reflect"
 	"strconv"
 	"unsafe"

+ 1 - 1
reflect_optional.go

@@ -1,7 +1,7 @@
 package jsoniter
 
 import (
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"reflect"
 	"unsafe"
 )

+ 1 - 1
reflect_slice.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"fmt"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"io"
 	"unsafe"
 )

+ 1 - 1
reflect_struct_decoder.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"fmt"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"io"
 	"strings"
 	"unsafe"

+ 1 - 1
reflect_struct_encoder.go

@@ -2,7 +2,7 @@ package jsoniter
 
 import (
 	"fmt"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"io"
 	"reflect"
 	"unsafe"

+ 1 - 1
value_tests/value_test.go

@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"github.com/json-iterator/go"
 	"github.com/stretchr/testify/require"
-	"github.com/v2pro/plz/reflect2"
+	"github.com/modern-go/reflect2"
 	"testing"
 )