1
0
SongZihuan 1 жил өмнө
parent
commit
ce3e177cad
100 өөрчлөгдсөн 173 нэмэгдсэн , 173 устгасан
  1. 0 0
      README.md
  2. 2 2
      core/bloom/bloom.go
  3. 2 2
      core/bloom/bloom_test.go
  4. 4 4
      core/breaker/breaker.go
  5. 1 1
      core/breaker/breaker_test.go
  6. 1 1
      core/breaker/breakers_test.go
  7. 2 2
      core/breaker/googlebreaker.go
  8. 3 3
      core/breaker/googlebreaker_test.go
  9. 2 2
      core/cmdline/input_test.go
  10. 1 1
      core/codec/aesecb.go
  11. 1 1
      core/codec/rsa_test.go
  12. 3 3
      core/collection/cache.go
  13. 1 1
      core/collection/rollingwindow.go
  14. 1 1
      core/collection/rollingwindow_test.go
  15. 1 1
      core/collection/safemap_test.go
  16. 2 2
      core/collection/set.go
  17. 1 1
      core/collection/set_test.go
  18. 3 3
      core/collection/timingwheel.go
  19. 4 4
      core/collection/timingwheel_test.go
  20. 3 3
      core/conf/config.go
  21. 2 2
      core/conf/config_test.go
  22. 1 1
      core/conf/properties.go
  23. 1 1
      core/conf/properties_test.go
  24. 1 1
      core/contextx/unmarshaler.go
  25. 1 1
      core/discov/accountregistry.go
  26. 2 2
      core/discov/accountregistry_test.go
  27. 1 1
      core/discov/clients.go
  28. 1 1
      core/discov/clients_test.go
  29. 1 1
      core/discov/internal/accountmanager_test.go
  30. 5 5
      core/discov/internal/registry.go
  31. 4 4
      core/discov/internal/registry_test.go
  32. 6 6
      core/discov/publisher.go
  33. 4 4
      core/discov/publisher_test.go
  34. 3 3
      core/discov/subscriber.go
  35. 2 2
      core/discov/subscriber_test.go
  36. 1 1
      core/executors/delayexecutor.go
  37. 2 2
      core/executors/lessexecutor.go
  38. 1 1
      core/executors/lessexecutor_test.go
  39. 5 5
      core/executors/periodicalexecutor.go
  40. 2 2
      core/executors/periodicalexecutor_test.go
  41. 1 1
      core/filex/file_test.go
  42. 1 1
      core/filex/lookup_test.go
  43. 1 1
      core/filex/rangereader_test.go
  44. 1 1
      core/fs/temps.go
  45. 1 1
      core/fx/parallel.go
  46. 1 1
      core/fx/retry.go
  47. 3 3
      core/fx/stream.go
  48. 1 1
      core/fx/stream_test.go
  49. 1 1
      core/hash/consistenthash.go
  50. 1 1
      core/hash/consistenthash_test.go
  51. 2 2
      core/iox/read_test.go
  52. 1 1
      core/limit/periodlimit.go
  53. 2 2
      core/limit/periodlimit_test.go
  54. 2 2
      core/limit/tokenlimit.go
  55. 3 3
      core/limit/tokenlimit_test.go
  56. 5 5
      core/load/adaptiveshedder.go
  57. 6 6
      core/load/adaptiveshedder_test.go
  58. 1 1
      core/load/sheddergroup.go
  59. 2 2
      core/load/sheddingstat.go
  60. 1 1
      core/logc/logs.go
  61. 2 2
      core/logc/logs_test.go
  62. 1 1
      core/logx/color.go
  63. 1 1
      core/logx/color_test.go
  64. 2 2
      core/logx/limitedexecutor.go
  65. 1 1
      core/logx/limitedexecutor_test.go
  66. 1 1
      core/logx/logs.go
  67. 1 1
      core/logx/logtest/logtest.go
  68. 1 1
      core/logx/logtest/logtest_test.go
  69. 2 2
      core/logx/richlogger.go
  70. 2 2
      core/logx/rotatelogger.go
  71. 2 2
      core/logx/rotatelogger_test.go
  72. 1 1
      core/logx/util_test.go
  73. 1 1
      core/logx/vars.go
  74. 1 1
      core/logx/writer.go
  75. 1 1
      core/mapping/jsonunmarshaler.go
  76. 1 1
      core/mapping/tomlunmarshaler.go
  77. 4 4
      core/mapping/unmarshaler.go
  78. 1 1
      core/mapping/unmarshaler_test.go
  79. 2 2
      core/mapping/utils.go
  80. 1 1
      core/mapping/yamlunmarshaler.go
  81. 1 1
      core/mathx/int_test.go
  82. 1 1
      core/metric/counter.go
  83. 2 2
      core/metric/counter_test.go
  84. 1 1
      core/metric/gauge.go
  85. 1 1
      core/metric/gauge_test.go
  86. 1 1
      core/metric/histogram.go
  87. 1 1
      core/metric/metric.go
  88. 1 1
      core/metric/summary.go
  89. 1 1
      core/metric/summary_test.go
  90. 1 1
      core/mr/mapreduce.go
  91. 1 1
      core/mr/mapreduce_fuzzcase_test.go
  92. 1 1
      core/mr/readme-cn.md
  93. 1 1
      core/mr/readme.md
  94. 1 1
      core/proc/goroutines.go
  95. 1 1
      core/proc/goroutines_test.go
  96. 1 1
      core/proc/profile.go
  97. 1 1
      core/proc/profile_test.go
  98. 2 2
      core/proc/shutdown.go
  99. 1 1
      core/proc/signals.go
  100. 2 2
      core/prof/profilecenter.go

+ 0 - 0
readme.md → README.md


+ 2 - 2
core/bloom/bloom.go

@@ -5,8 +5,8 @@ import (
 	"errors"
 	"strconv"
 
-	"github.com/zeromicro/go-zero/core/hash"
-	"github.com/zeromicro/go-zero/core/stores/redis"
+	"github.com/wuntsong-org/go-zero-plus/core/hash"
+	"github.com/wuntsong-org/go-zero-plus/core/stores/redis"
 )
 
 // for detailed error rate table, see http://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html

+ 2 - 2
core/bloom/bloom_test.go

@@ -5,8 +5,8 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/stores/redis/redistest"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/stores/redis/redistest"
 )
 
 func TestRedisBitSet_New_Set_Test(t *testing.T) {

+ 4 - 4
core/breaker/breaker.go

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

+ 1 - 1
core/breaker/breaker_test.go

@@ -8,7 +8,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/stat"
+	"github.com/wuntsong-org/go-zero-plus/core/stat"
 )
 
 func init() {

+ 1 - 1
core/breaker/breakers_test.go

@@ -6,7 +6,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/stat"
+	"github.com/wuntsong-org/go-zero-plus/core/stat"
 )
 
 func init() {

+ 2 - 2
core/breaker/googlebreaker.go

@@ -4,8 +4,8 @@ import (
 	"math"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/collection"
-	"github.com/zeromicro/go-zero/core/mathx"
+	"github.com/wuntsong-org/go-zero-plus/core/collection"
+	"github.com/wuntsong-org/go-zero-plus/core/mathx"
 )
 
 const (

+ 3 - 3
core/breaker/googlebreaker_test.go

@@ -7,9 +7,9 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/collection"
-	"github.com/zeromicro/go-zero/core/mathx"
-	"github.com/zeromicro/go-zero/core/stat"
+	"github.com/wuntsong-org/go-zero-plus/core/collection"
+	"github.com/wuntsong-org/go-zero-plus/core/mathx"
+	"github.com/wuntsong-org/go-zero-plus/core/stat"
 )
 
 const (

+ 2 - 2
core/cmdline/input_test.go

@@ -8,8 +8,8 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/iox"
-	"github.com/zeromicro/go-zero/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/iox"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
 )
 
 func TestEnterToContinue(t *testing.T) {

+ 1 - 1
core/codec/aesecb.go

@@ -7,7 +7,7 @@ import (
 	"encoding/base64"
 	"errors"
 
-	"github.com/zeromicro/go-zero/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
 )
 
 // ErrPaddingSize indicates bad padding size.

+ 1 - 1
core/codec/rsa_test.go

@@ -6,7 +6,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/fs"
+	"github.com/wuntsong-org/go-zero-plus/core/fs"
 )
 
 const (

+ 3 - 3
core/collection/cache.go

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

+ 1 - 1
core/collection/rollingwindow.go

@@ -4,7 +4,7 @@ import (
 	"sync"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
 )
 
 type (

+ 1 - 1
core/collection/rollingwindow_test.go

@@ -6,7 +6,7 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 const duration = time.Millisecond * 50

+ 1 - 1
core/collection/safemap_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 func TestSafeMap(t *testing.T) {

+ 2 - 2
core/collection/set.go

@@ -1,8 +1,8 @@
 package collection
 
 import (
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
 )
 
 const (

+ 1 - 1
core/collection/set_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
 )
 
 func init() {

+ 3 - 3
core/collection/timingwheel.go

@@ -6,9 +6,9 @@ import (
 	"fmt"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/threading"
-	"github.com/zeromicro/go-zero/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/threading"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
 )
 
 const drainWorkers = 8

+ 4 - 4
core/collection/timingwheel_test.go

@@ -8,10 +8,10 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/stringx"
-	"github.com/zeromicro/go-zero/core/syncx"
-	"github.com/zeromicro/go-zero/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/syncx"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
 )
 
 const (

+ 3 - 3
core/conf/config.go

@@ -8,9 +8,9 @@ import (
 	"reflect"
 	"strings"
 
-	"github.com/zeromicro/go-zero/core/jsonx"
-	"github.com/zeromicro/go-zero/core/mapping"
-	"github.com/zeromicro/go-zero/internal/encoding"
+	"github.com/wuntsong-org/go-zero-plus/core/jsonx"
+	"github.com/wuntsong-org/go-zero-plus/core/mapping"
+	"github.com/wuntsong-org/go-zero-plus/internal/encoding"
 )
 
 const (

+ 2 - 2
core/conf/config_test.go

@@ -6,8 +6,8 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/fs"
-	"github.com/zeromicro/go-zero/core/hash"
+	"github.com/wuntsong-org/go-zero-plus/core/fs"
+	"github.com/wuntsong-org/go-zero-plus/core/hash"
 )
 
 var dupErr conflictKeyError

+ 1 - 1
core/conf/properties.go

@@ -7,7 +7,7 @@ import (
 	"strings"
 	"sync"
 
-	"github.com/zeromicro/go-zero/core/iox"
+	"github.com/wuntsong-org/go-zero-plus/core/iox"
 )
 
 // PropertyError represents a configuration error message.

+ 1 - 1
core/conf/properties_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/fs"
+	"github.com/wuntsong-org/go-zero-plus/core/fs"
 )
 
 func TestProperties(t *testing.T) {

+ 1 - 1
core/contextx/unmarshaler.go

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

+ 1 - 1
core/discov/accountregistry.go

@@ -1,6 +1,6 @@
 package discov
 
-import "github.com/zeromicro/go-zero/core/discov/internal"
+import "github.com/wuntsong-org/go-zero-plus/core/discov/internal"
 
 // RegisterAccount registers the username/password to the given etcd cluster.
 func RegisterAccount(endpoints []string, user, pass string) {

+ 2 - 2
core/discov/accountregistry_test.go

@@ -4,8 +4,8 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/discov/internal"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/discov/internal"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 func TestRegisterAccount(t *testing.T) {

+ 1 - 1
core/discov/clients.go

@@ -4,7 +4,7 @@ import (
 	"fmt"
 	"strings"
 
-	"github.com/zeromicro/go-zero/core/discov/internal"
+	"github.com/wuntsong-org/go-zero-plus/core/discov/internal"
 )
 
 const (

+ 1 - 1
core/discov/clients_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/discov/internal"
+	"github.com/wuntsong-org/go-zero-plus/core/discov/internal"
 )
 
 var mockLock sync.Mutex

+ 1 - 1
core/discov/internal/accountmanager_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 const (

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

@@ -9,11 +9,11 @@ import (
 	"sync"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/contextx"
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/syncx"
-	"github.com/zeromicro/go-zero/core/threading"
+	"github.com/wuntsong-org/go-zero-plus/core/contextx"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/syncx"
+	"github.com/wuntsong-org/go-zero-plus/core/threading"
 	clientv3 "go.etcd.io/etcd/client/v3"
 )
 

+ 4 - 4
core/discov/internal/registry_test.go

@@ -9,10 +9,10 @@ import (
 
 	"github.com/golang/mock/gomock"
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/contextx"
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/contextx"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 	"go.etcd.io/etcd/api/v3/etcdserverpb"
 	"go.etcd.io/etcd/api/v3/mvccpb"
 	clientv3 "go.etcd.io/etcd/client/v3"

+ 6 - 6
core/discov/publisher.go

@@ -3,12 +3,12 @@ package discov
 import (
 	"time"
 
-	"github.com/zeromicro/go-zero/core/discov/internal"
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/proc"
-	"github.com/zeromicro/go-zero/core/syncx"
-	"github.com/zeromicro/go-zero/core/threading"
+	"github.com/wuntsong-org/go-zero-plus/core/discov/internal"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/syncx"
+	"github.com/wuntsong-org/go-zero-plus/core/threading"
 	clientv3 "go.etcd.io/etcd/client/v3"
 )
 

+ 4 - 4
core/discov/publisher_test.go

@@ -11,10 +11,10 @@ import (
 
 	"github.com/golang/mock/gomock"
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/discov/internal"
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/discov/internal"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 	clientv3 "go.etcd.io/etcd/client/v3"
 	"golang.org/x/net/http2"
 	"google.golang.org/grpc"

+ 3 - 3
core/discov/subscriber.go

@@ -4,9 +4,9 @@ import (
 	"sync"
 	"sync/atomic"
 
-	"github.com/zeromicro/go-zero/core/discov/internal"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/syncx"
+	"github.com/wuntsong-org/go-zero-plus/core/discov/internal"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/syncx"
 )
 
 type (

+ 2 - 2
core/discov/subscriber_test.go

@@ -5,8 +5,8 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/discov/internal"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/discov/internal"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 const (

+ 1 - 1
core/executors/delayexecutor.go

@@ -4,7 +4,7 @@ import (
 	"sync"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/threading"
+	"github.com/wuntsong-org/go-zero-plus/core/threading"
 )
 
 // A DelayExecutor delays a tasks on given delay interval.

+ 2 - 2
core/executors/lessexecutor.go

@@ -3,8 +3,8 @@ package executors
 import (
 	"time"
 
-	"github.com/zeromicro/go-zero/core/syncx"
-	"github.com/zeromicro/go-zero/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/core/syncx"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
 )
 
 // A LessExecutor is an executor to limit execution once within given time interval.

+ 1 - 1
core/executors/lessexecutor_test.go

@@ -5,7 +5,7 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
 )
 
 func TestLessExecutor_DoOrDiscard(t *testing.T) {

+ 5 - 5
core/executors/periodicalexecutor.go

@@ -6,11 +6,11 @@ import (
 	"sync/atomic"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/proc"
-	"github.com/zeromicro/go-zero/core/syncx"
-	"github.com/zeromicro/go-zero/core/threading"
-	"github.com/zeromicro/go-zero/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/syncx"
+	"github.com/wuntsong-org/go-zero-plus/core/threading"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
 )
 
 const idleRound = 10

+ 2 - 2
core/executors/periodicalexecutor_test.go

@@ -8,8 +8,8 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/proc"
-	"github.com/zeromicro/go-zero/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
 )
 
 const threshold = 10

+ 1 - 1
core/filex/file_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/fs"
+	"github.com/wuntsong-org/go-zero-plus/core/fs"
 )
 
 const (

+ 1 - 1
core/filex/lookup_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/fs"
+	"github.com/wuntsong-org/go-zero-plus/core/fs"
 )
 
 func TestSplitLineChunks(t *testing.T) {

+ 1 - 1
core/filex/rangereader_test.go

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

+ 1 - 1
core/fs/temps.go

@@ -3,7 +3,7 @@ package fs
 import (
 	"os"
 
-	"github.com/zeromicro/go-zero/core/hash"
+	"github.com/wuntsong-org/go-zero-plus/core/hash"
 )
 
 // TempFileWithText creates the temporary file with the given content,

+ 1 - 1
core/fx/parallel.go

@@ -1,6 +1,6 @@
 package fx
 
-import "github.com/zeromicro/go-zero/core/threading"
+import "github.com/wuntsong-org/go-zero-plus/core/threading"
 
 // Parallel runs fns parallelly and waits for done.
 func Parallel(fns ...func()) {

+ 1 - 1
core/fx/retry.go

@@ -4,7 +4,7 @@ import (
 	"context"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/errorx"
+	"github.com/wuntsong-org/go-zero-plus/core/errorx"
 )
 
 const defaultRetryTimes = 3

+ 3 - 3
core/fx/stream.go

@@ -4,9 +4,9 @@ import (
 	"sort"
 	"sync"
 
-	"github.com/zeromicro/go-zero/core/collection"
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/threading"
+	"github.com/wuntsong-org/go-zero-plus/core/collection"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/threading"
 )
 
 const (

+ 1 - 1
core/fx/stream_test.go

@@ -13,7 +13,7 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 	"go.uber.org/goleak"
 )
 

+ 1 - 1
core/hash/consistenthash.go

@@ -6,7 +6,7 @@ import (
 	"strconv"
 	"sync"
 
-	"github.com/zeromicro/go-zero/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
 )
 
 const (

+ 1 - 1
core/hash/consistenthash_test.go

@@ -6,7 +6,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/mathx"
+	"github.com/wuntsong-org/go-zero-plus/core/mathx"
 )
 
 const (

+ 2 - 2
core/iox/read_test.go

@@ -8,8 +8,8 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/fs"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/fs"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 func TestReadText(t *testing.T) {

+ 1 - 1
core/limit/periodlimit.go

@@ -6,7 +6,7 @@ import (
 	"strconv"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/stores/redis"
+	"github.com/wuntsong-org/go-zero-plus/core/stores/redis"
 )
 
 const (

+ 2 - 2
core/limit/periodlimit_test.go

@@ -5,8 +5,8 @@ import (
 
 	"github.com/alicebob/miniredis/v2"
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/stores/redis"
-	"github.com/zeromicro/go-zero/core/stores/redis/redistest"
+	"github.com/wuntsong-org/go-zero-plus/core/stores/redis"
+	"github.com/wuntsong-org/go-zero-plus/core/stores/redis/redistest"
 )
 
 func TestPeriodLimit_Take(t *testing.T) {

+ 2 - 2
core/limit/tokenlimit.go

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

+ 3 - 3
core/limit/tokenlimit_test.go

@@ -7,9 +7,9 @@ import (
 
 	"github.com/alicebob/miniredis/v2"
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/stores/redis"
-	"github.com/zeromicro/go-zero/core/stores/redis/redistest"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/stores/redis"
+	"github.com/wuntsong-org/go-zero-plus/core/stores/redis/redistest"
 )
 
 func init() {

+ 5 - 5
core/load/adaptiveshedder.go

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

+ 6 - 6
core/load/adaptiveshedder_test.go

@@ -8,12 +8,12 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/collection"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/mathx"
-	"github.com/zeromicro/go-zero/core/stat"
-	"github.com/zeromicro/go-zero/core/syncx"
-	"github.com/zeromicro/go-zero/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/core/collection"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/mathx"
+	"github.com/wuntsong-org/go-zero-plus/core/stat"
+	"github.com/wuntsong-org/go-zero-plus/core/syncx"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
 )
 
 const (

+ 1 - 1
core/load/sheddergroup.go

@@ -3,7 +3,7 @@ package load
 import (
 	"io"
 
-	"github.com/zeromicro/go-zero/core/syncx"
+	"github.com/wuntsong-org/go-zero-plus/core/syncx"
 )
 
 // A ShedderGroup is a manager to manage key based shedders.

+ 2 - 2
core/load/sheddingstat.go

@@ -4,8 +4,8 @@ import (
 	"sync/atomic"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/stat"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/stat"
 )
 
 type (

+ 1 - 1
core/logc/logs.go

@@ -4,7 +4,7 @@ import (
 	"context"
 	"fmt"
 
-	"github.com/zeromicro/go-zero/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
 )
 
 type (

+ 2 - 2
core/logc/logs_test.go

@@ -9,8 +9,8 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/logx/logtest"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/logx/logtest"
 )
 
 func TestAddGlobalFields(t *testing.T) {

+ 1 - 1
core/logx/color.go

@@ -3,7 +3,7 @@ package logx
 import (
 	"sync/atomic"
 
-	"github.com/zeromicro/go-zero/core/color"
+	"github.com/wuntsong-org/go-zero-plus/core/color"
 )
 
 // WithColor is a helper function to add color to a string, only in plain encoding.

+ 1 - 1
core/logx/color_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/color"
+	"github.com/wuntsong-org/go-zero-plus/core/color"
 )
 
 func TestWithColor(t *testing.T) {

+ 2 - 2
core/logx/limitedexecutor.go

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

+ 1 - 1
core/logx/limitedexecutor_test.go

@@ -6,7 +6,7 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
 )
 
 func TestLimitedExecutor_logOrDiscard(t *testing.T) {

+ 1 - 1
core/logx/logs.go

@@ -11,7 +11,7 @@ import (
 	"sync/atomic"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/sysx"
+	"github.com/wuntsong-org/go-zero-plus/core/sysx"
 )
 
 const callerDepth = 4

+ 1 - 1
core/logx/logtest/logtest.go

@@ -6,7 +6,7 @@ import (
 	"io"
 	"testing"
 
-	"github.com/zeromicro/go-zero/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
 )
 
 type Buffer struct {

+ 1 - 1
core/logx/logtest/logtest_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
 )
 
 func TestCollector(t *testing.T) {

+ 2 - 2
core/logx/richlogger.go

@@ -5,8 +5,8 @@ import (
 	"fmt"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/timex"
-	"github.com/zeromicro/go-zero/internal/trace"
+	"github.com/wuntsong-org/go-zero-plus/core/timex"
+	"github.com/wuntsong-org/go-zero-plus/internal/trace"
 )
 
 // WithCallerSkip returns a Logger with given caller skip.

+ 2 - 2
core/logx/rotatelogger.go

@@ -13,8 +13,8 @@ import (
 	"sync"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/fs"
-	"github.com/zeromicro/go-zero/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/fs"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
 )
 
 const (

+ 2 - 2
core/logx/rotatelogger_test.go

@@ -12,8 +12,8 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/fs"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/fs"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 func TestDailyRotateRuleMarkRotated(t *testing.T) {

+ 1 - 1
core/logx/util_test.go

@@ -43,7 +43,7 @@ func TestPrettyCaller(t *testing.T) {
 		},
 		{
 			name: "long path",
-			file: "github.com/zeromicro/go-zero/core/logx/util_test.go",
+			file: "github.com/wuntsong-org/go-zero-plus/core/logx/util_test.go",
 			line: 12,
 			want: "logx/util_test.go:12",
 		},

+ 1 - 1
core/logx/vars.go

@@ -3,7 +3,7 @@ package logx
 import (
 	"errors"
 
-	"github.com/zeromicro/go-zero/core/syncx"
+	"github.com/wuntsong-org/go-zero-plus/core/syncx"
 )
 
 const (

+ 1 - 1
core/logx/writer.go

@@ -12,7 +12,7 @@ import (
 	"sync/atomic"
 
 	fatihcolor "github.com/fatih/color"
-	"github.com/zeromicro/go-zero/core/color"
+	"github.com/wuntsong-org/go-zero-plus/core/color"
 )
 
 type (

+ 1 - 1
core/mapping/jsonunmarshaler.go

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

+ 1 - 1
core/mapping/tomlunmarshaler.go

@@ -3,7 +3,7 @@ package mapping
 import (
 	"io"
 
-	"github.com/zeromicro/go-zero/internal/encoding"
+	"github.com/wuntsong-org/go-zero-plus/internal/encoding"
 )
 
 // UnmarshalTomlBytes unmarshals TOML bytes into the given v.

+ 4 - 4
core/mapping/unmarshaler.go

@@ -12,10 +12,10 @@ import (
 	"sync"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/jsonx"
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/proc"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/jsonx"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 const (

+ 1 - 1
core/mapping/unmarshaler_test.go

@@ -12,7 +12,7 @@ import (
 
 	"github.com/google/uuid"
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 // because json.Number doesn't support strconv.ParseUint(...),

+ 2 - 2
core/mapping/utils.go

@@ -10,8 +10,8 @@ import (
 	"strings"
 	"sync"
 
-	"github.com/zeromicro/go-zero/core/lang"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/lang"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 const (

+ 1 - 1
core/mapping/yamlunmarshaler.go

@@ -3,7 +3,7 @@ package mapping
 import (
 	"io"
 
-	"github.com/zeromicro/go-zero/internal/encoding"
+	"github.com/wuntsong-org/go-zero-plus/internal/encoding"
 )
 
 // UnmarshalYamlBytes unmarshals content into v.

+ 1 - 1
core/mathx/int_test.go

@@ -4,7 +4,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/stringx"
+	"github.com/wuntsong-org/go-zero-plus/core/stringx"
 )
 
 func TestMaxInt(t *testing.T) {

+ 1 - 1
core/metric/counter.go

@@ -2,7 +2,7 @@ package metric
 
 import (
 	prom "github.com/prometheus/client_golang/prometheus"
-	"github.com/zeromicro/go-zero/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
 )
 
 type (

+ 2 - 2
core/metric/counter_test.go

@@ -5,8 +5,8 @@ import (
 
 	"github.com/prometheus/client_golang/prometheus/testutil"
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/proc"
-	"github.com/zeromicro/go-zero/core/prometheus"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/prometheus"
 )
 
 func TestNewCounterVec(t *testing.T) {

+ 1 - 1
core/metric/gauge.go

@@ -2,7 +2,7 @@ package metric
 
 import (
 	prom "github.com/prometheus/client_golang/prometheus"
-	"github.com/zeromicro/go-zero/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
 )
 
 type (

+ 1 - 1
core/metric/gauge_test.go

@@ -5,7 +5,7 @@ import (
 
 	"github.com/prometheus/client_golang/prometheus/testutil"
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
 )
 
 func TestNewGaugeVec(t *testing.T) {

+ 1 - 1
core/metric/histogram.go

@@ -2,7 +2,7 @@ package metric
 
 import (
 	prom "github.com/prometheus/client_golang/prometheus"
-	"github.com/zeromicro/go-zero/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
 )
 
 type (

+ 1 - 1
core/metric/metric.go

@@ -1,6 +1,6 @@
 package metric
 
-import "github.com/zeromicro/go-zero/core/prometheus"
+import "github.com/wuntsong-org/go-zero-plus/core/prometheus"
 
 // A VectorOpts is a general configuration.
 type VectorOpts struct {

+ 1 - 1
core/metric/summary.go

@@ -2,7 +2,7 @@ package metric
 
 import (
 	prom "github.com/prometheus/client_golang/prometheus"
-	"github.com/zeromicro/go-zero/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
 )
 
 type (

+ 1 - 1
core/metric/summary_test.go

@@ -6,7 +6,7 @@ import (
 
 	"github.com/prometheus/client_golang/prometheus/testutil"
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/proc"
+	"github.com/wuntsong-org/go-zero-plus/core/proc"
 )
 
 func TestNewSummaryVec(t *testing.T) {

+ 1 - 1
core/mr/mapreduce.go

@@ -6,7 +6,7 @@ import (
 	"sync"
 	"sync/atomic"
 
-	"github.com/zeromicro/go-zero/core/errorx"
+	"github.com/wuntsong-org/go-zero-plus/core/errorx"
 )
 
 const (

+ 1 - 1
core/mr/mapreduce_fuzzcase_test.go

@@ -13,7 +13,7 @@ import (
 	"time"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/threading"
+	"github.com/wuntsong-org/go-zero-plus/core/threading"
 	"gopkg.in/cheggaaa/pb.v1"
 )
 

+ 1 - 1
core/mr/readme-cn.md

@@ -54,7 +54,7 @@ import (
     "fmt"
     "log"
 
-    "github.com/zeromicro/go-zero/core/mr"
+    "github.com/wuntsong-org/go-zero-plus/core/mr"
 )
 
 func main() {

+ 1 - 1
core/mr/readme.md

@@ -55,7 +55,7 @@ import (
     "fmt"
     "log"
 
-    "github.com/zeromicro/go-zero/core/mr"
+    "github.com/wuntsong-org/go-zero-plus/core/mr"
 )
 
 func main() {

+ 1 - 1
core/proc/goroutines.go

@@ -10,7 +10,7 @@ import (
 	"syscall"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
 )
 
 const (

+ 1 - 1
core/proc/goroutines_test.go

@@ -9,7 +9,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/logx/logtest"
+	"github.com/wuntsong-org/go-zero-plus/core/logx/logtest"
 )
 
 func TestDumpGoroutines(t *testing.T) {

+ 1 - 1
core/proc/profile.go

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

+ 1 - 1
core/proc/profile_test.go

@@ -5,7 +5,7 @@ import (
 	"testing"
 
 	"github.com/stretchr/testify/assert"
-	"github.com/zeromicro/go-zero/core/logx/logtest"
+	"github.com/wuntsong-org/go-zero-plus/core/logx/logtest"
 )
 
 func TestProfile(t *testing.T) {

+ 2 - 2
core/proc/shutdown.go

@@ -9,8 +9,8 @@ import (
 	"syscall"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/threading"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/threading"
 )
 
 const (

+ 1 - 1
core/proc/signals.go

@@ -8,7 +8,7 @@ import (
 	"syscall"
 	"time"
 
-	"github.com/zeromicro/go-zero/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
 )
 
 const (

+ 2 - 2
core/prof/profilecenter.go

@@ -8,8 +8,8 @@ import (
 	"time"
 
 	"github.com/olekukonko/tablewriter"
-	"github.com/zeromicro/go-zero/core/logx"
-	"github.com/zeromicro/go-zero/core/threading"
+	"github.com/wuntsong-org/go-zero-plus/core/logx"
+	"github.com/wuntsong-org/go-zero-plus/core/threading"
 )
 
 type (

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно