瀏覽代碼

update package reference

kevin 4 年之前
父節點
當前提交
0a7e0cce77
共有 100 個文件被更改,包括 194 次插入616 次删除
  1. 2 2
      core/bloom/bloom.go
  2. 1 2
      core/bloom/bloom_test.go
  3. 4 4
      core/breaker/breaker.go
  4. 1 2
      core/breaker/breaker_test.go
  5. 1 2
      core/breaker/breakers_test.go
  6. 2 2
      core/breaker/googlebreaker.go
  7. 3 4
      core/breaker/googlebreaker_test.go
  8. 1 1
      core/codec/aesecb.go
  9. 3 3
      core/collection/cache.go
  10. 1 1
      core/collection/rollingwindow.go
  11. 1 2
      core/collection/rollingwindow_test.go
  12. 1 2
      core/collection/safemap_test.go
  13. 2 2
      core/collection/set.go
  14. 3 3
      core/collection/timingwheel.go
  15. 4 5
      core/collection/timingwheel_test.go
  16. 1 1
      core/conf/config.go
  17. 1 1
      core/conf/properties.go
  18. 1 2
      core/conf/properties_test.go
  19. 1 1
      core/contextx/unmarshaler.go
  20. 1 1
      core/discov/clients.go
  21. 1 2
      core/discov/clients_test.go
  22. 2 2
      core/discov/facade.go
  23. 5 6
      core/discov/internal/registry.go
  24. 2 3
      core/discov/internal/registry_test.go
  25. 0 4
      core/discov/kubernetes/discov-namespace.yaml
  26. 0 378
      core/discov/kubernetes/etcd.yaml
  27. 6 7
      core/discov/publisher.go
  28. 2 3
      core/discov/publisher_test.go
  29. 2 2
      core/discov/subscriber.go
  30. 1 2
      core/discov/subscriber_test.go
  31. 1 3
      core/executors/bulkexecutor.go
  32. 1 1
      core/executors/delayexecutor.go
  33. 2 2
      core/executors/lessexecutor.go
  34. 1 2
      core/executors/lessexecutor_test.go
  35. 4 4
      core/executors/periodicalexecutor.go
  36. 1 2
      core/executors/periodicalexecutor_test.go
  37. 1 1
      core/filex/file_test.go
  38. 1 2
      core/filex/lookup_test.go
  39. 1 2
      core/filex/rangereader_test.go
  40. 1 1
      core/fs/temps.go
  41. 3 3
      core/fx/fn.go
  42. 1 2
      core/fx/fn_test.go
  43. 1 1
      core/fx/parallel.go
  44. 1 1
      core/fx/retry.go
  45. 2 2
      core/hash/consistenthash.go
  46. 1 2
      core/hash/consistenthash_test.go
  47. 2 3
      core/iox/read_test.go
  48. 1 1
      core/limit/periodlimit.go
  49. 1 2
      core/limit/periodlimit_test.go
  50. 2 3
      core/limit/tokenlimit.go
  51. 2 3
      core/limit/tokenlimit_test.go
  52. 5 5
      core/load/adaptiveshedder.go
  53. 5 6
      core/load/adaptiveshedder_test.go
  54. 1 1
      core/load/sheddergroup.go
  55. 2 2
      core/load/sheddingstat.go
  56. 1 1
      core/logx/customlogger.go
  57. 2 2
      core/logx/limitedexecutor.go
  58. 4 4
      core/logx/logs.go
  59. 3 3
      core/logx/rotatelogger.go
  60. 1 1
      core/logx/tracelog.go
  61. 1 2
      core/logx/tracelog_test.go
  62. 1 1
      core/mapping/jsonunmarshaler.go
  63. 3 3
      core/mapping/unmarshaler.go
  64. 1 2
      core/mapping/unmarshaler_test.go
  65. 1 1
      core/mapping/utils.go
  66. 1 2
      core/mathx/int_test.go
  67. 1 2
      core/metric/counter.go
  68. 1 2
      core/metric/gauge.go
  69. 1 2
      core/metric/histogram.go
  70. 4 4
      core/mr/mapreduce.go
  71. 2 3
      core/mr/mapreduce_test.go
  72. 1 1
      core/proc/goroutines.go
  73. 1 1
      core/proc/profile.go
  74. 1 1
      core/proc/shutdown.go
  75. 1 1
      core/proc/signals.go
  76. 2 3
      core/prof/profilecenter.go
  77. 1 1
      core/prof/profiler.go
  78. 2 3
      core/prometheus/agent.go
  79. 1 1
      core/rescue/recover.go
  80. 1 2
      core/rescue/recover_test.go
  81. 4 4
      core/service/serviceconf.go
  82. 3 3
      core/service/servicegroup.go
  83. 5 5
      core/stat/alert.go
  84. 2 2
      core/stat/internal/cgroup_linux.go
  85. 2 2
      core/stat/internal/cpu_linux.go
  86. 2 2
      core/stat/metrics.go
  87. 1 1
      core/stat/remotewriter.go
  88. 3 3
      core/stat/usage.go
  89. 1 1
      core/stores/cache/cacheconf.go
  90. 1 1
      core/stores/cache/cacheopt.go
  91. 1 2
      core/stores/clickhouse/clickhouse.go
  92. 3 3
      core/stores/internal/cache.go
  93. 4 5
      core/stores/internal/cache_test.go
  94. 5 5
      core/stores/internal/cachenode.go
  95. 4 5
      core/stores/internal/cachenode_test.go
  96. 1 1
      core/stores/internal/cachestat.go
  97. 7 7
      core/stores/internal/cleaner.go
  98. 1 1
      core/stores/internal/config.go
  99. 1 1
      core/stores/kv/config.go
  100. 4 4
      core/stores/kv/store.go

+ 2 - 2
core/bloom/bloom.go

@@ -4,8 +4,8 @@ import (
 	"errors"
 	"strconv"
 
-	"zero/core/hash"
-	"zero/core/stores/redis"
+	"github.com/tal-tech/go-zero/core/hash"
+	"github.com/tal-tech/go-zero/core/stores/redis"
 )
 
 const (

+ 1 - 2
core/bloom/bloom_test.go

@@ -3,10 +3,9 @@ package bloom
 import (
 	"testing"
 
-	"zero/core/stores/redis"
-
 	"github.com/alicebob/miniredis"
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stores/redis"
 )
 
 func TestRedisBitSet_New_Set_Test(t *testing.T) {

+ 4 - 4
core/breaker/breaker.go

@@ -7,10 +7,10 @@ import (
 	"sync"
 	"time"
 
-	"zero/core/mathx"
-	"zero/core/proc"
-	"zero/core/stat"
-	"zero/core/stringx"
+	"github.com/tal-tech/go-zero/core/mathx"
+	"github.com/tal-tech/go-zero/core/proc"
+	"github.com/tal-tech/go-zero/core/stat"
+	"github.com/tal-tech/go-zero/core/stringx"
 )
 
 const (

+ 1 - 2
core/breaker/breaker_test.go

@@ -5,9 +5,8 @@ import (
 	"strconv"
 	"testing"
 
-	"zero/core/stat"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stat"
 )
 
 func init() {

+ 1 - 2
core/breaker/breakers_test.go

@@ -5,9 +5,8 @@ import (
 	"fmt"
 	"testing"
 
-	"zero/core/stat"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stat"
 )
 
 func init() {

+ 2 - 2
core/breaker/googlebreaker.go

@@ -5,8 +5,8 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/collection"
-	"zero/core/mathx"
+	"github.com/tal-tech/go-zero/core/collection"
+	"github.com/tal-tech/go-zero/core/mathx"
 )
 
 const (

+ 3 - 4
core/breaker/googlebreaker_test.go

@@ -7,11 +7,10 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/collection"
-	"zero/core/mathx"
-	"zero/core/stat"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/collection"
+	"github.com/tal-tech/go-zero/core/mathx"
+	"github.com/tal-tech/go-zero/core/stat"
 )
 
 const (

+ 1 - 1
core/codec/aesecb.go

@@ -7,7 +7,7 @@ import (
 	"encoding/base64"
 	"errors"
 
-	"zero/core/logx"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 var ErrPaddingSize = errors.New("padding size error")

+ 3 - 3
core/collection/cache.go

@@ -6,9 +6,9 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/logx"
-	"zero/core/mathx"
-	"zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/mathx"
+	"github.com/tal-tech/go-zero/core/syncx"
 )
 
 const (

+ 1 - 1
core/collection/rollingwindow.go

@@ -4,7 +4,7 @@ import (
 	"sync"
 	"time"
 
-	"zero/core/timex"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 type (

+ 1 - 2
core/collection/rollingwindow_test.go

@@ -5,9 +5,8 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/stringx"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stringx"
 )
 
 const duration = time.Millisecond * 50

+ 1 - 2
core/collection/safemap_test.go

@@ -3,9 +3,8 @@ package collection
 import (
 	"testing"
 
-	"zero/core/stringx"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stringx"
 )
 
 func TestSafeMap(t *testing.T) {

+ 2 - 2
core/collection/set.go

@@ -1,8 +1,8 @@
 package collection
 
 import (
-	"zero/core/lang"
-	"zero/core/logx"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 const (

+ 3 - 3
core/collection/timingwheel.go

@@ -5,9 +5,9 @@ import (
 	"fmt"
 	"time"
 
-	"zero/core/lang"
-	"zero/core/threading"
-	"zero/core/timex"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/threading"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 const drainWorkers = 8

+ 4 - 5
core/collection/timingwheel_test.go

@@ -7,12 +7,11 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/lang"
-	"zero/core/stringx"
-	"zero/core/syncx"
-	"zero/core/timex"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/stringx"
+	"github.com/tal-tech/go-zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 const (

+ 1 - 1
core/conf/config.go

@@ -6,7 +6,7 @@ import (
 	"log"
 	"path"
 
-	"zero/core/mapping"
+	"github.com/tal-tech/go-zero/core/mapping"
 )
 
 var loaders = map[string]func([]byte, interface{}) error{

+ 1 - 1
core/conf/properties.go

@@ -6,7 +6,7 @@ import (
 	"strings"
 	"sync"
 
-	"zero/core/iox"
+	"github.com/tal-tech/go-zero/core/iox"
 )
 
 // PropertyError represents a configuration error message.

+ 1 - 2
core/conf/properties_test.go

@@ -4,9 +4,8 @@ import (
 	"os"
 	"testing"
 
-	"zero/core/fs"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/fs"
 )
 
 func TestProperties(t *testing.T) {

+ 1 - 1
core/contextx/unmarshaler.go

@@ -3,7 +3,7 @@ package contextx
 import (
 	"context"
 
-	"zero/core/mapping"
+	"github.com/tal-tech/go-zero/core/mapping"
 )
 
 const contextTagKey = "ctx"

+ 1 - 1
core/discov/clients.go

@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"strings"
 
-	"zero/core/discov/internal"
+	"github.com/tal-tech/go-zero/core/discov/internal"
 )
 
 const (

+ 1 - 2
core/discov/clients_test.go

@@ -4,9 +4,8 @@ import (
 	"sync"
 	"testing"
 
-	"zero/core/discov/internal"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/discov/internal"
 )
 
 var mockLock sync.Mutex

+ 2 - 2
core/discov/facade.go

@@ -1,8 +1,8 @@
 package discov
 
 import (
-	"zero/core/discov/internal"
-	"zero/core/lang"
+	"github.com/tal-tech/go-zero/core/discov/internal"
+	"github.com/tal-tech/go-zero/core/lang"
 )
 
 type (

+ 5 - 6
core/discov/internal/registry.go

@@ -9,12 +9,11 @@ import (
 	"sync"
 	"time"
 
-	"zero/core/contextx"
-	"zero/core/lang"
-	"zero/core/logx"
-	"zero/core/syncx"
-	"zero/core/threading"
-
+	"github.com/tal-tech/go-zero/core/contextx"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/threading"
 	"go.etcd.io/etcd/clientv3"
 )
 

+ 2 - 3
core/discov/internal/registry_test.go

@@ -5,11 +5,10 @@ import (
 	"sync"
 	"testing"
 
-	"zero/core/contextx"
-	"zero/core/stringx"
-
 	"github.com/golang/mock/gomock"
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/contextx"
+	"github.com/tal-tech/go-zero/core/stringx"
 	"go.etcd.io/etcd/clientv3"
 	"go.etcd.io/etcd/mvcc/mvccpb"
 )

+ 0 - 4
core/discov/kubernetes/discov-namespace.yaml

@@ -1,4 +0,0 @@
-apiVersion: v1
-kind: Namespace
-metadata:
-  name: discov

+ 0 - 378
core/discov/kubernetes/etcd.yaml

@@ -1,378 +0,0 @@
-apiVersion: v1
-kind: Service
-metadata:
-  name: etcd
-  namespace: discov
-spec:
-  ports:
-    - name: etcd-port
-      port: 2379
-      protocol: TCP
-      targetPort: 2379
-  selector:
-    app: etcd
-
----
-
-apiVersion: v1
-kind: Pod
-metadata:
-  labels:
-    app: etcd
-    etcd_node: etcd0
-  name: etcd0
-  namespace: discov
-spec:
-  containers:
-    - command:
-        - /usr/local/bin/etcd
-        - --name
-        - etcd0
-        - --initial-advertise-peer-urls
-        - http://etcd0:2380
-        - --listen-peer-urls
-        - http://0.0.0.0:2380
-        - --listen-client-urls
-        - http://0.0.0.0:2379
-        - --advertise-client-urls
-        - http://etcd0:2379
-        - --initial-cluster
-        - etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380,etcd4=http://etcd4:2380
-        - --initial-cluster-state
-        - new
-      image: registry-vpc.cn-hangzhou.aliyuncs.com/xapp/etcd:latest
-      name: etcd0
-      ports:
-        - containerPort: 2379
-          name: client
-          protocol: TCP
-        - containerPort: 2380
-          name: server
-          protocol: TCP
-  imagePullSecrets:
-    - name: aliyun
-  affinity:
-    podAntiAffinity:
-      requiredDuringSchedulingIgnoredDuringExecution:
-        - labelSelector:
-            matchExpressions:
-              - key: app
-                operator: In
-                values:
-                  - etcd
-          topologyKey: "kubernetes.io/hostname"
-  restartPolicy: Always
-
----
-
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    etcd_node: etcd0
-  name: etcd0
-  namespace: discov
-spec:
-  ports:
-    - name: client
-      port: 2379
-      protocol: TCP
-      targetPort: 2379
-    - name: server
-      port: 2380
-      protocol: TCP
-      targetPort: 2380
-  selector:
-    etcd_node: etcd0
-
----
-
-apiVersion: v1
-kind: Pod
-metadata:
-  labels:
-    app: etcd
-    etcd_node: etcd1
-  name: etcd1
-  namespace: discov
-spec:
-  containers:
-    - command:
-        - /usr/local/bin/etcd
-        - --name
-        - etcd1
-        - --initial-advertise-peer-urls
-        - http://etcd1:2380
-        - --listen-peer-urls
-        - http://0.0.0.0:2380
-        - --listen-client-urls
-        - http://0.0.0.0:2379
-        - --advertise-client-urls
-        - http://etcd1:2379
-        - --initial-cluster
-        - etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380,etcd4=http://etcd4:2380
-        - --initial-cluster-state
-        - new
-      image: registry-vpc.cn-hangzhou.aliyuncs.com/xapp/etcd:latest
-      name: etcd1
-      ports:
-        - containerPort: 2379
-          name: client
-          protocol: TCP
-        - containerPort: 2380
-          name: server
-          protocol: TCP
-  imagePullSecrets:
-    - name: aliyun
-  affinity:
-    podAntiAffinity:
-      requiredDuringSchedulingIgnoredDuringExecution:
-        - labelSelector:
-            matchExpressions:
-              - key: app
-                operator: In
-                values:
-                  - etcd
-          topologyKey: "kubernetes.io/hostname"
-  restartPolicy: Always
-
----
-
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    etcd_node: etcd1
-  name: etcd1
-  namespace: discov
-spec:
-  ports:
-    - name: client
-      port: 2379
-      protocol: TCP
-      targetPort: 2379
-    - name: server
-      port: 2380
-      protocol: TCP
-      targetPort: 2380
-  selector:
-    etcd_node: etcd1
-
----
-
-apiVersion: v1
-kind: Pod
-metadata:
-  labels:
-    app: etcd
-    etcd_node: etcd2
-  name: etcd2
-  namespace: discov
-spec:
-  containers:
-    - command:
-        - /usr/local/bin/etcd
-        - --name
-        - etcd2
-        - --initial-advertise-peer-urls
-        - http://etcd2:2380
-        - --listen-peer-urls
-        - http://0.0.0.0:2380
-        - --listen-client-urls
-        - http://0.0.0.0:2379
-        - --advertise-client-urls
-        - http://etcd2:2379
-        - --initial-cluster
-        - etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380,etcd4=http://etcd4:2380
-        - --initial-cluster-state
-        - new
-      image: registry-vpc.cn-hangzhou.aliyuncs.com/xapp/etcd:latest
-      name: etcd2
-      ports:
-        - containerPort: 2379
-          name: client
-          protocol: TCP
-        - containerPort: 2380
-          name: server
-          protocol: TCP
-  imagePullSecrets:
-    - name: aliyun
-  affinity:
-    podAntiAffinity:
-      requiredDuringSchedulingIgnoredDuringExecution:
-        - labelSelector:
-            matchExpressions:
-              - key: app
-                operator: In
-                values:
-                  - etcd
-          topologyKey: "kubernetes.io/hostname"
-  restartPolicy: Always
-
----
-
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    etcd_node: etcd2
-  name: etcd2
-  namespace: discov
-spec:
-  ports:
-    - name: client
-      port: 2379
-      protocol: TCP
-      targetPort: 2379
-    - name: server
-      port: 2380
-      protocol: TCP
-      targetPort: 2380
-  selector:
-    etcd_node: etcd2
-
----
-
-apiVersion: v1
-kind: Pod
-metadata:
-  labels:
-    app: etcd
-    etcd_node: etcd3
-  name: etcd3
-  namespace: discov
-spec:
-  containers:
-    - command:
-        - /usr/local/bin/etcd
-        - --name
-        - etcd3
-        - --initial-advertise-peer-urls
-        - http://etcd3:2380
-        - --listen-peer-urls
-        - http://0.0.0.0:2380
-        - --listen-client-urls
-        - http://0.0.0.0:2379
-        - --advertise-client-urls
-        - http://etcd3:2379
-        - --initial-cluster
-        - etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380,etcd4=http://etcd4:2380
-        - --initial-cluster-state
-        - new
-      image: registry-vpc.cn-hangzhou.aliyuncs.com/xapp/etcd:latest
-      name: etcd3
-      ports:
-        - containerPort: 2379
-          name: client
-          protocol: TCP
-        - containerPort: 2380
-          name: server
-          protocol: TCP
-  imagePullSecrets:
-    - name: aliyun
-  affinity:
-    podAntiAffinity:
-      requiredDuringSchedulingIgnoredDuringExecution:
-        - labelSelector:
-            matchExpressions:
-              - key: app
-                operator: In
-                values:
-                  - etcd
-          topologyKey: "kubernetes.io/hostname"
-  restartPolicy: Always
-
----
-
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    etcd_node: etcd3
-  name: etcd3
-  namespace: discov
-spec:
-  ports:
-    - name: client
-      port: 2379
-      protocol: TCP
-      targetPort: 2379
-    - name: server
-      port: 2380
-      protocol: TCP
-      targetPort: 2380
-  selector:
-    etcd_node: etcd3
-
----
-
-apiVersion: v1
-kind: Pod
-metadata:
-  labels:
-    app: etcd
-    etcd_node: etcd4
-  name: etcd4
-  namespace: discov
-spec:
-  containers:
-    - command:
-        - /usr/local/bin/etcd
-        - --name
-        - etcd4
-        - --initial-advertise-peer-urls
-        - http://etcd4:2380
-        - --listen-peer-urls
-        - http://0.0.0.0:2380
-        - --listen-client-urls
-        - http://0.0.0.0:2379
-        - --advertise-client-urls
-        - http://etcd4:2379
-        - --initial-cluster
-        - etcd0=http://etcd0:2380,etcd1=http://etcd1:2380,etcd2=http://etcd2:2380,etcd3=http://etcd3:2380,etcd4=http://etcd4:2380
-        - --initial-cluster-state
-        - new
-      image: registry-vpc.cn-hangzhou.aliyuncs.com/xapp/etcd:latest
-      name: etcd4
-      ports:
-        - containerPort: 2379
-          name: client
-          protocol: TCP
-        - containerPort: 2380
-          name: server
-          protocol: TCP
-  imagePullSecrets:
-    - name: aliyun
-  affinity:
-    podAntiAffinity:
-      requiredDuringSchedulingIgnoredDuringExecution:
-        - labelSelector:
-            matchExpressions:
-              - key: app
-                operator: In
-                values:
-                  - etcd
-          topologyKey: "kubernetes.io/hostname"
-  restartPolicy: Always
-
----
-
-apiVersion: v1
-kind: Service
-metadata:
-  labels:
-    etcd_node: etcd4
-  name: etcd4
-  namespace: discov
-spec:
-  ports:
-    - name: client
-      port: 2379
-      protocol: TCP
-      targetPort: 2379
-    - name: server
-      port: 2380
-      protocol: TCP
-      targetPort: 2380
-  selector:
-    etcd_node: etcd4

+ 6 - 7
core/discov/publisher.go

@@ -1,13 +1,12 @@
 package discov
 
 import (
-	"zero/core/discov/internal"
-	"zero/core/lang"
-	"zero/core/logx"
-	"zero/core/proc"
-	"zero/core/syncx"
-	"zero/core/threading"
-
+	"github.com/tal-tech/go-zero/core/discov/internal"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/proc"
+	"github.com/tal-tech/go-zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/threading"
 	"go.etcd.io/etcd/clientv3"
 )
 

+ 2 - 3
core/discov/publisher_test.go

@@ -5,11 +5,10 @@ import (
 	"sync"
 	"testing"
 
-	"zero/core/discov/internal"
-	"zero/core/logx"
-
 	"github.com/golang/mock/gomock"
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/discov/internal"
+	"github.com/tal-tech/go-zero/core/logx"
 	"go.etcd.io/etcd/clientv3"
 )
 

+ 2 - 2
core/discov/subscriber.go

@@ -4,8 +4,8 @@ import (
 	"sync"
 	"sync/atomic"
 
-	"zero/core/discov/internal"
-	"zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/discov/internal"
+	"github.com/tal-tech/go-zero/core/syncx"
 )
 
 type (

+ 1 - 2
core/discov/subscriber_test.go

@@ -3,9 +3,8 @@ package discov
 import (
 	"testing"
 
-	"zero/core/discov/internal"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/discov/internal"
 )
 
 const (

+ 1 - 3
core/executors/bulkexecutor.go

@@ -1,8 +1,6 @@
 package executors
 
-import (
-	"time"
-)
+import "time"
 
 const defaultBulkTasks = 1000
 

+ 1 - 1
core/executors/delayexecutor.go

@@ -4,7 +4,7 @@ import (
 	"sync"
 	"time"
 
-	"zero/core/threading"
+	"github.com/tal-tech/go-zero/core/threading"
 )
 
 type DelayExecutor struct {

+ 2 - 2
core/executors/lessexecutor.go

@@ -3,8 +3,8 @@ package executors
 import (
 	"time"
 
-	"zero/core/syncx"
-	"zero/core/timex"
+	"github.com/tal-tech/go-zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 type LessExecutor struct {

+ 1 - 2
core/executors/lessexecutor_test.go

@@ -4,9 +4,8 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/timex"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 func TestLessExecutor_DoOrDiscard(t *testing.T) {

+ 4 - 4
core/executors/periodicalexecutor.go

@@ -5,10 +5,10 @@ import (
 	"sync"
 	"time"
 
-	"zero/core/proc"
-	"zero/core/syncx"
-	"zero/core/threading"
-	"zero/core/timex"
+	"github.com/tal-tech/go-zero/core/proc"
+	"github.com/tal-tech/go-zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/threading"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 const idleRound = 10

+ 1 - 2
core/executors/periodicalexecutor_test.go

@@ -7,9 +7,8 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/timex"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 const threshold = 10

+ 1 - 1
core/filex/file_test.go

@@ -4,7 +4,7 @@ import (
 	"os"
 	"testing"
 
-	"zero/core/fs"
+	"github.com/tal-tech/go-zero/core/fs"
 
 	"github.com/stretchr/testify/assert"
 )

+ 1 - 2
core/filex/lookup_test.go

@@ -4,9 +4,8 @@ import (
 	"os"
 	"testing"
 
-	"zero/core/fs"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/fs"
 )
 
 func TestSplitLineChunks(t *testing.T) {

+ 1 - 2
core/filex/rangereader_test.go

@@ -5,8 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-
-	"zero/core/fs"
+	"github.com/tal-tech/go-zero/core/fs"
 )
 
 func TestRangeReader(t *testing.T) {

+ 1 - 1
core/fs/temps.go

@@ -4,7 +4,7 @@ import (
 	"io/ioutil"
 	"os"
 
-	"zero/core/hash"
+	"github.com/tal-tech/go-zero/core/hash"
 )
 
 // TempFileWithText creates the temporary file with the given content,

+ 3 - 3
core/fx/fn.go

@@ -4,9 +4,9 @@ import (
 	"sort"
 	"sync"
 
-	"zero/core/collection"
-	"zero/core/lang"
-	"zero/core/threading"
+	"github.com/tal-tech/go-zero/core/collection"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/threading"
 )
 
 const (

+ 1 - 2
core/fx/fn_test.go

@@ -9,9 +9,8 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/stringx"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stringx"
 )
 
 func TestBuffer(t *testing.T) {

+ 1 - 1
core/fx/parallel.go

@@ -1,6 +1,6 @@
 package fx
 
-import "zero/core/threading"
+import "github.com/tal-tech/go-zero/core/threading"
 
 func Parallel(fns ...func()) {
 	group := threading.NewRoutineGroup()

+ 1 - 1
core/fx/retry.go

@@ -1,6 +1,6 @@
 package fx
 
-import "zero/core/errorx"
+import "github.com/tal-tech/go-zero/core/errorx"
 
 const defaultRetryTimes = 3
 

+ 2 - 2
core/hash/consistenthash.go

@@ -6,8 +6,8 @@ import (
 	"strconv"
 	"sync"
 
-	"zero/core/lang"
-	"zero/core/mapping"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/mapping"
 )
 
 const (

+ 1 - 2
core/hash/consistenthash_test.go

@@ -6,8 +6,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-
-	"zero/core/mathx"
+	"github.com/tal-tech/go-zero/core/mathx"
 )
 
 const (

+ 2 - 3
core/iox/read_test.go

@@ -8,10 +8,9 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/fs"
-	"zero/core/stringx"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/fs"
+	"github.com/tal-tech/go-zero/core/stringx"
 )
 
 func TestReadText(t *testing.T) {

+ 1 - 1
core/limit/periodlimit.go

@@ -5,7 +5,7 @@ import (
 	"strconv"
 	"time"
 
-	"zero/core/stores/redis"
+	"github.com/tal-tech/go-zero/core/stores/redis"
 )
 
 const (

+ 1 - 2
core/limit/periodlimit_test.go

@@ -3,10 +3,9 @@ package limit
 import (
 	"testing"
 
-	"zero/core/stores/redis"
-
 	"github.com/alicebob/miniredis"
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stores/redis"
 )
 
 func TestPeriodLimit_Take(t *testing.T) {

+ 2 - 3
core/limit/tokenlimit.go

@@ -7,9 +7,8 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/logx"
-	"zero/core/stores/redis"
-
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/stores/redis"
 	xrate "golang.org/x/time/rate"
 )
 

+ 2 - 3
core/limit/tokenlimit_test.go

@@ -4,11 +4,10 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/logx"
-	"zero/core/stores/redis"
-
 	"github.com/alicebob/miniredis"
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/stores/redis"
 )
 
 func init() {

+ 5 - 5
core/load/adaptiveshedder.go

@@ -7,11 +7,11 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/collection"
-	"zero/core/logx"
-	"zero/core/stat"
-	"zero/core/syncx"
-	"zero/core/timex"
+	"github.com/tal-tech/go-zero/core/collection"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/stat"
+	"github.com/tal-tech/go-zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 const (

+ 5 - 6
core/load/adaptiveshedder_test.go

@@ -7,13 +7,12 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/collection"
-	"zero/core/logx"
-	"zero/core/mathx"
-	"zero/core/stat"
-	"zero/core/syncx"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/collection"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/mathx"
+	"github.com/tal-tech/go-zero/core/stat"
+	"github.com/tal-tech/go-zero/core/syncx"
 )
 
 const (

+ 1 - 1
core/load/sheddergroup.go

@@ -3,7 +3,7 @@ package load
 import (
 	"io"
 
-	"zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/syncx"
 )
 
 type ShedderGroup struct {

+ 2 - 2
core/load/sheddingstat.go

@@ -4,8 +4,8 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/logx"
-	"zero/core/stat"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/stat"
 )
 
 type (

+ 1 - 1
core/logx/customlogger.go

@@ -5,7 +5,7 @@ import (
 	"io"
 	"time"
 
-	"zero/core/timex"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 const customCallerDepth = 3

+ 2 - 2
core/logx/limitedexecutor.go

@@ -4,8 +4,8 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/syncx"
-	"zero/core/timex"
+	"github.com/tal-tech/go-zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 type limitedExecutor struct {

+ 4 - 4
core/logx/logs.go

@@ -16,10 +16,10 @@ import (
 	"sync"
 	"sync/atomic"
 
-	"zero/core/iox"
-	"zero/core/lang"
-	"zero/core/sysx"
-	"zero/core/timex"
+	"github.com/tal-tech/go-zero/core/iox"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/sysx"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 const (

+ 3 - 3
core/logx/rotatelogger.go

@@ -13,9 +13,9 @@ import (
 	"sync"
 	"time"
 
-	"zero/core/fs"
-	"zero/core/lang"
-	"zero/core/timex"
+	"github.com/tal-tech/go-zero/core/fs"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/timex"
 )
 
 const (

+ 1 - 1
core/logx/tracelog.go

@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"io"
 
-	"zero/core/trace/tracespec"
+	"github.com/tal-tech/go-zero/core/trace/tracespec"
 )
 
 type tracingEntry struct {

+ 1 - 2
core/logx/tracelog_test.go

@@ -5,9 +5,8 @@ import (
 	"strings"
 	"testing"
 
-	"zero/core/trace/tracespec"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/trace/tracespec"
 )
 
 const (

+ 1 - 1
core/mapping/jsonunmarshaler.go

@@ -3,7 +3,7 @@ package mapping
 import (
 	"io"
 
-	"zero/core/jsonx"
+	"github.com/tal-tech/go-zero/core/jsonx"
 )
 
 const jsonTagKey = "json"

+ 3 - 3
core/mapping/unmarshaler.go

@@ -10,9 +10,9 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/jsonx"
-	"zero/core/lang"
-	"zero/core/stringx"
+	"github.com/tal-tech/go-zero/core/jsonx"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/stringx"
 )
 
 const (

+ 1 - 2
core/mapping/unmarshaler_test.go

@@ -6,9 +6,8 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/stringx"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stringx"
 )
 
 // because json.Number doesn't support strconv.ParseUint(...),

+ 1 - 1
core/mapping/utils.go

@@ -10,7 +10,7 @@ import (
 	"strings"
 	"sync"
 
-	"zero/core/stringx"
+	"github.com/tal-tech/go-zero/core/stringx"
 )
 
 const (

+ 1 - 2
core/mathx/int_test.go

@@ -3,9 +3,8 @@ package mathx
 import (
 	"testing"
 
-	"zero/core/stringx"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stringx"
 )
 
 func TestMaxInt(t *testing.T) {

+ 1 - 2
core/metric/counter.go

@@ -1,9 +1,8 @@
 package metric
 
 import (
-	"zero/core/proc"
-
 	prom "github.com/prometheus/client_golang/prometheus"
+	"github.com/tal-tech/go-zero/core/proc"
 )
 
 type (

+ 1 - 2
core/metric/gauge.go

@@ -1,9 +1,8 @@
 package metric
 
 import (
-	"zero/core/proc"
-
 	prom "github.com/prometheus/client_golang/prometheus"
+	"github.com/tal-tech/go-zero/core/proc"
 )
 
 type (

+ 1 - 2
core/metric/histogram.go

@@ -1,9 +1,8 @@
 package metric
 
 import (
-	"zero/core/proc"
-
 	prom "github.com/prometheus/client_golang/prometheus"
+	"github.com/tal-tech/go-zero/core/proc"
 )
 
 type (

+ 4 - 4
core/mr/mapreduce.go

@@ -5,10 +5,10 @@ import (
 	"fmt"
 	"sync"
 
-	"zero/core/errorx"
-	"zero/core/lang"
-	"zero/core/syncx"
-	"zero/core/threading"
+	"github.com/tal-tech/go-zero/core/errorx"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/threading"
 )
 
 const (

+ 2 - 3
core/mr/mapreduce_test.go

@@ -9,10 +9,9 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/stringx"
-	"zero/core/syncx"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/stringx"
+	"github.com/tal-tech/go-zero/core/syncx"
 )
 
 var errDummy = errors.New("dummy")

+ 1 - 1
core/proc/goroutines.go

@@ -10,7 +10,7 @@ import (
 	"syscall"
 	"time"
 
-	"zero/core/logx"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 const (

+ 1 - 1
core/proc/profile.go

@@ -14,7 +14,7 @@ import (
 	"syscall"
 	"time"
 
-	"zero/core/logx"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 // DefaultMemProfileRate is the default memory profiling rate.

+ 1 - 1
core/proc/shutdown.go

@@ -9,7 +9,7 @@ import (
 	"syscall"
 	"time"
 
-	"zero/core/logx"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 const (

+ 1 - 1
core/proc/signals.go

@@ -7,7 +7,7 @@ import (
 	"os/signal"
 	"syscall"
 
-	"zero/core/logx"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 const timeFormat = "0102150405"

+ 2 - 3
core/prof/profilecenter.go

@@ -7,10 +7,9 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/logx"
-	"zero/core/threading"
-
 	"github.com/olekukonko/tablewriter"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/threading"
 )
 
 type (

+ 1 - 1
core/prof/profiler.go

@@ -1,6 +1,6 @@
 package prof
 
-import "zero/core/utils"
+import "github.com/tal-tech/go-zero/core/utils"
 
 type (
 	ProfilePoint struct {

+ 2 - 3
core/prometheus/agent.go

@@ -5,10 +5,9 @@ import (
 	"net/http"
 	"sync"
 
-	"zero/core/logx"
-	"zero/core/threading"
-
 	"github.com/prometheus/client_golang/prometheus/promhttp"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/threading"
 )
 
 var once sync.Once

+ 1 - 1
core/rescue/recover.go

@@ -1,6 +1,6 @@
 package rescue
 
-import "zero/core/logx"
+import "github.com/tal-tech/go-zero/core/logx"
 
 func Recover(cleanups ...func()) {
 	for _, cleanup := range cleanups {

+ 1 - 2
core/rescue/recover_test.go

@@ -4,9 +4,8 @@ import (
 	"sync/atomic"
 	"testing"
 
-	"zero/core/logx"
-
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 func init() {

+ 4 - 4
core/service/serviceconf.go

@@ -3,10 +3,10 @@ package service
 import (
 	"log"
 
-	"zero/core/load"
-	"zero/core/logx"
-	"zero/core/prometheus"
-	"zero/core/stat"
+	"github.com/tal-tech/go-zero/core/load"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/prometheus"
+	"github.com/tal-tech/go-zero/core/stat"
 )
 
 const (

+ 3 - 3
core/service/servicegroup.go

@@ -3,9 +3,9 @@ package service
 import (
 	"log"
 
-	"zero/core/proc"
-	"zero/core/syncx"
-	"zero/core/threading"
+	"github.com/tal-tech/go-zero/core/proc"
+	"github.com/tal-tech/go-zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/threading"
 )
 
 type (

+ 5 - 5
core/stat/alert.go

@@ -10,11 +10,11 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/executors"
-	"zero/core/proc"
-	"zero/core/sysx"
-	"zero/core/timex"
-	"zero/core/utils"
+	"github.com/tal-tech/go-zero/core/executors"
+	"github.com/tal-tech/go-zero/core/proc"
+	"github.com/tal-tech/go-zero/core/sysx"
+	"github.com/tal-tech/go-zero/core/timex"
+	"github.com/tal-tech/go-zero/core/utils"
 )
 
 const (

+ 2 - 2
core/stat/internal/cgroup_linux.go

@@ -7,8 +7,8 @@ import (
 	"strconv"
 	"strings"
 
-	"zero/core/iox"
-	"zero/core/lang"
+	"github.com/tal-tech/go-zero/core/iox"
+	"github.com/tal-tech/go-zero/core/lang"
 )
 
 const cgroupDir = "/sys/fs/cgroup"

+ 2 - 2
core/stat/internal/cpu_linux.go

@@ -6,8 +6,8 @@ import (
 	"strings"
 	"time"
 
-	"zero/core/iox"
-	"zero/core/lang"
+	"github.com/tal-tech/go-zero/core/iox"
+	"github.com/tal-tech/go-zero/core/lang"
 )
 
 const (

+ 2 - 2
core/stat/metrics.go

@@ -5,8 +5,8 @@ import (
 	"sync"
 	"time"
 
-	"zero/core/executors"
-	"zero/core/logx"
+	"github.com/tal-tech/go-zero/core/executors"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 var (

+ 1 - 1
core/stat/remotewriter.go

@@ -7,7 +7,7 @@ import (
 	"net/http"
 	"time"
 
-	"zero/core/logx"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 const httpTimeout = time.Second * 5

+ 3 - 3
core/stat/usage.go

@@ -5,9 +5,9 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/logx"
-	"zero/core/stat/internal"
-	"zero/core/threading"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/stat/internal"
+	"github.com/tal-tech/go-zero/core/threading"
 )
 
 const (

+ 1 - 1
core/stores/cache/cacheconf.go

@@ -1,5 +1,5 @@
 package cache
 
-import "zero/core/stores/internal"
+import "github.com/tal-tech/go-zero/core/stores/internal"
 
 type CacheConf = internal.ClusterConf

+ 1 - 1
core/stores/cache/cacheopt.go

@@ -3,7 +3,7 @@ package cache
 import (
 	"time"
 
-	"zero/core/stores/internal"
+	"github.com/tal-tech/go-zero/core/stores/internal"
 )
 
 type Option = internal.Option

+ 1 - 2
core/stores/clickhouse/clickhouse.go

@@ -1,9 +1,8 @@
 package clickhouse
 
 import (
-	"zero/core/stores/sqlx"
-
 	_ "github.com/kshvakov/clickhouse"
+	"github.com/tal-tech/go-zero/core/stores/sqlx"
 )
 
 const clickHouseDriverName = "clickhouse"

+ 3 - 3
core/stores/internal/cache.go

@@ -5,9 +5,9 @@ import (
 	"log"
 	"time"
 
-	"zero/core/errorx"
-	"zero/core/hash"
-	"zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/errorx"
+	"github.com/tal-tech/go-zero/core/hash"
+	"github.com/tal-tech/go-zero/core/syncx"
 )
 
 type (

+ 4 - 5
core/stores/internal/cache_test.go

@@ -8,13 +8,12 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/errorx"
-	"zero/core/hash"
-	"zero/core/stores/redis"
-	"zero/core/syncx"
-
 	"github.com/alicebob/miniredis"
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/errorx"
+	"github.com/tal-tech/go-zero/core/hash"
+	"github.com/tal-tech/go-zero/core/stores/redis"
+	"github.com/tal-tech/go-zero/core/syncx"
 )
 
 type mockedNode struct {

+ 5 - 5
core/stores/internal/cachenode.go

@@ -8,11 +8,11 @@ import (
 	"sync"
 	"time"
 
-	"zero/core/logx"
-	"zero/core/mathx"
-	"zero/core/stat"
-	"zero/core/stores/redis"
-	"zero/core/syncx"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/mathx"
+	"github.com/tal-tech/go-zero/core/stat"
+	"github.com/tal-tech/go-zero/core/stores/redis"
+	"github.com/tal-tech/go-zero/core/syncx"
 )
 
 const (

+ 4 - 5
core/stores/internal/cachenode_test.go

@@ -7,13 +7,12 @@ import (
 	"testing"
 	"time"
 
-	"zero/core/logx"
-	"zero/core/mathx"
-	"zero/core/stat"
-	"zero/core/stores/redis"
-
 	"github.com/alicebob/miniredis"
 	"github.com/stretchr/testify/assert"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/mathx"
+	"github.com/tal-tech/go-zero/core/stat"
+	"github.com/tal-tech/go-zero/core/stores/redis"
 )
 
 func init() {

+ 1 - 1
core/stores/internal/cachestat.go

@@ -4,7 +4,7 @@ import (
 	"sync/atomic"
 	"time"
 
-	"zero/core/logx"
+	"github.com/tal-tech/go-zero/core/logx"
 )
 
 const statInterval = time.Minute

+ 7 - 7
core/stores/internal/cleaner.go

@@ -4,13 +4,13 @@ import (
 	"fmt"
 	"time"
 
-	"zero/core/collection"
-	"zero/core/lang"
-	"zero/core/logx"
-	"zero/core/proc"
-	"zero/core/stat"
-	"zero/core/stringx"
-	"zero/core/threading"
+	"github.com/tal-tech/go-zero/core/collection"
+	"github.com/tal-tech/go-zero/core/lang"
+	"github.com/tal-tech/go-zero/core/logx"
+	"github.com/tal-tech/go-zero/core/proc"
+	"github.com/tal-tech/go-zero/core/stat"
+	"github.com/tal-tech/go-zero/core/stringx"
+	"github.com/tal-tech/go-zero/core/threading"
 )
 
 const (

+ 1 - 1
core/stores/internal/config.go

@@ -1,6 +1,6 @@
 package internal
 
-import "zero/core/stores/redis"
+import "github.com/tal-tech/go-zero/core/stores/redis"
 
 type (
 	ClusterConf []NodeConf

+ 1 - 1
core/stores/kv/config.go

@@ -1,5 +1,5 @@
 package kv
 
-import "zero/core/stores/internal"
+import "github.com/tal-tech/go-zero/core/stores/internal"
 
 type KvConf = internal.ClusterConf

+ 4 - 4
core/stores/kv/store.go

@@ -4,10 +4,10 @@ import (
 	"errors"
 	"log"
 
-	"zero/core/errorx"
-	"zero/core/hash"
-	"zero/core/stores/internal"
-	"zero/core/stores/redis"
+	"github.com/tal-tech/go-zero/core/errorx"
+	"github.com/tal-tech/go-zero/core/hash"
+	"github.com/tal-tech/go-zero/core/stores/internal"
+	"github.com/tal-tech/go-zero/core/stores/redis"
 )
 
 var ErrNoRedisNode = errors.New("no redis node")

部分文件因文件數量過多而無法顯示