diff --git a/core/bloom/bloom_test.go b/core/bloom/bloom_test.go index 3be351ba..acad4d6c 100644 --- a/core/bloom/bloom_test.go +++ b/core/bloom/bloom_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/tal-tech/go-zero/core/stores/redistest" + "github.com/tal-tech/go-zero/core/stores/redis/redistest" ) func TestRedisBitSet_New_Set_Test(t *testing.T) { diff --git a/core/limit/periodlimit_test.go b/core/limit/periodlimit_test.go index 579bde19..609f4ccc 100644 --- a/core/limit/periodlimit_test.go +++ b/core/limit/periodlimit_test.go @@ -6,7 +6,7 @@ import ( "github.com/alicebob/miniredis" "github.com/stretchr/testify/assert" "github.com/tal-tech/go-zero/core/stores/redis" - "github.com/tal-tech/go-zero/core/stores/redistest" + "github.com/tal-tech/go-zero/core/stores/redis/redistest" ) func TestPeriodLimit_Take(t *testing.T) { diff --git a/core/limit/tokenlimit_test.go b/core/limit/tokenlimit_test.go index eae3d30d..4c9ce0f9 100644 --- a/core/limit/tokenlimit_test.go +++ b/core/limit/tokenlimit_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/tal-tech/go-zero/core/logx" "github.com/tal-tech/go-zero/core/stores/redis" - "github.com/tal-tech/go-zero/core/stores/redistest" + "github.com/tal-tech/go-zero/core/stores/redis/redistest" ) func init() { diff --git a/core/stores/cache/cache_test.go b/core/stores/cache/cache_test.go index f67f79b1..985cd57e 100644 --- a/core/stores/cache/cache_test.go +++ b/core/stores/cache/cache_test.go @@ -12,7 +12,7 @@ import ( "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/stores/redistest" + "github.com/tal-tech/go-zero/core/stores/redis/redistest" "github.com/tal-tech/go-zero/core/syncx" ) diff --git a/core/stores/cache/cachenode_test.go b/core/stores/cache/cachenode_test.go index 27a0b19b..d8004602 100644 --- a/core/stores/cache/cachenode_test.go +++ b/core/stores/cache/cachenode_test.go @@ -15,7 +15,7 @@ import ( "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/stores/redistest" + "github.com/tal-tech/go-zero/core/stores/redis/redistest" "github.com/tal-tech/go-zero/core/syncx" ) diff --git a/core/stores/mongoc/cachedcollection_test.go b/core/stores/mongoc/cachedcollection_test.go index 95e60126..596bf5c0 100644 --- a/core/stores/mongoc/cachedcollection_test.go +++ b/core/stores/mongoc/cachedcollection_test.go @@ -18,7 +18,7 @@ import ( "github.com/tal-tech/go-zero/core/stores/cache" "github.com/tal-tech/go-zero/core/stores/mongo" "github.com/tal-tech/go-zero/core/stores/redis" - "github.com/tal-tech/go-zero/core/stores/redistest" + "github.com/tal-tech/go-zero/core/stores/redis/redistest" ) func init() { diff --git a/core/stores/redistest/redistest.go b/core/stores/redis/redistest/redistest.go similarity index 100% rename from core/stores/redistest/redistest.go rename to core/stores/redis/redistest/redistest.go diff --git a/core/stores/sqlc/cachedsql_test.go b/core/stores/sqlc/cachedsql_test.go index b53128ea..dd1c0448 100644 --- a/core/stores/sqlc/cachedsql_test.go +++ b/core/stores/sqlc/cachedsql_test.go @@ -20,7 +20,7 @@ import ( "github.com/tal-tech/go-zero/core/stat" "github.com/tal-tech/go-zero/core/stores/cache" "github.com/tal-tech/go-zero/core/stores/redis" - "github.com/tal-tech/go-zero/core/stores/redistest" + "github.com/tal-tech/go-zero/core/stores/redis/redistest" "github.com/tal-tech/go-zero/core/stores/sqlx" ) diff --git a/readme.md b/readme.md index f3ffcb78..e2b4ac77 100644 --- a/readme.md +++ b/readme.md @@ -16,8 +16,6 @@ go-zero 是一个集成了各种工程实践的 web 和 rpc 框架。通过弹 go-zero 包含极简的 API 定义和生成工具 goctl,可以根据定义的 api 文件一键生成 Go, iOS, Android, Kotlin, Dart, TypeScript, JavaScript 代码,并可直接运行。 -看着觉得不错的,烦请 **Star** - 使用 go-zero 的好处: * 轻松获得支撑千万日活服务的稳定性 @@ -81,6 +79,8 @@ go-zero 是一个集成了各种工程实践的包含 web 和 rpc 框架,有 ![弹性设计](doc/images/resilience.jpg) +觉得不错的话,别忘 **star** 👏 + ## 4. Installation 在项目目录下通过如下命令安装: diff --git a/zrpc/internal/auth/auth_test.go b/zrpc/internal/auth/auth_test.go index c1f5c9b4..6cdf3b5a 100644 --- a/zrpc/internal/auth/auth_test.go +++ b/zrpc/internal/auth/auth_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/tal-tech/go-zero/core/stores/redistest" + "github.com/tal-tech/go-zero/core/stores/redis/redistest" "google.golang.org/grpc/metadata" ) diff --git a/zrpc/internal/serverinterceptors/authinterceptor_test.go b/zrpc/internal/serverinterceptors/authinterceptor_test.go index 687b0940..975e8437 100644 --- a/zrpc/internal/serverinterceptors/authinterceptor_test.go +++ b/zrpc/internal/serverinterceptors/authinterceptor_test.go @@ -5,7 +5,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/tal-tech/go-zero/core/stores/redistest" + "github.com/tal-tech/go-zero/core/stores/redis/redistest" "github.com/tal-tech/go-zero/zrpc/internal/auth" "google.golang.org/grpc" "google.golang.org/grpc/metadata"