From ec299085f533a2e4b9685746f17fa20465bfadf4 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Tue, 1 Feb 2022 13:03:30 +0800 Subject: [PATCH] docs: update tal-tech to zeromico in docs (#1498) --- core/mr/readme-cn.md | 2 +- core/mr/readme.md | 4 ++-- readme-cn.md | 6 +++--- readme.md | 6 +++--- tools/goctl/migrate/mod.go | 1 - tools/goctl/model/mongo/readme.md | 4 ++-- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/core/mr/readme-cn.md b/core/mr/readme-cn.md index 617e9331..fda1f1e9 100644 --- a/core/mr/readme-cn.md +++ b/core/mr/readme-cn.md @@ -54,7 +54,7 @@ import ( "fmt" "log" - "github.com/tal-tech/go-zero/core/mr" + "github.com/zeromicro/go-zero/core/mr" ) func main() { diff --git a/core/mr/readme.md b/core/mr/readme.md index 9049b8ef..e082494b 100644 --- a/core/mr/readme.md +++ b/core/mr/readme.md @@ -55,7 +55,7 @@ import ( "fmt" "log" - "github.com/tal-tech/go-zero/core/mr" + "github.com/zeromicro/go-zero/core/mr" ) func main() { @@ -87,4 +87,4 @@ More examples: [https://github.com/zeromicro/zero-examples/tree/main/mapreduce]( ## Give a Star! ⭐ -If you like or are using this project to learn or start your solution, please give it a star. Thanks! \ No newline at end of file +If you like or are using this project to learn or start your solution, please give it a star. Thanks! diff --git a/readme-cn.md b/readme-cn.md index bef0c03f..6daf412d 100644 --- a/readme-cn.md +++ b/readme-cn.md @@ -89,7 +89,7 @@ go-zero 是一个集成了各种工程实践的包含 web 和 rpc 框架,有 在项目目录下通过如下命令安装: ```shell -GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/tal-tech/go-zero +GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro/go-zero ``` ## 5. Quick Start @@ -106,10 +106,10 @@ GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/tal-tech/ ```shell # Go 1.15 及之前版本 - GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/tal-tech/go-zero/tools/goctl@latest + GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro/go-zero/tools/goctl@latest # Go 1.16 及以后版本 - GOPROXY=https://goproxy.cn/,direct go install github.com/tal-tech/go-zero/tools/goctl@latest + GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest ``` 确保 goctl 可执行 diff --git a/readme.md b/readme.md index fe7a0668..90037a6d 100644 --- a/readme.md +++ b/readme.md @@ -90,7 +90,7 @@ As below, go-zero protects the system with a couple of layers and mechanisms: Run the following command under your project: ```shell -go get -u github.com/tal-tech/go-zero +go get -u github.com/zeromicro/go-zero ``` ## 6. Quick Start @@ -107,10 +107,10 @@ go get -u github.com/tal-tech/go-zero ```shell # for Go 1.15 and earlier - GO111MODULE=on go get -u github.com/tal-tech/go-zero/tools/goctl@latest + GO111MODULE=on go get -u github.com/zeromicro/go-zero/tools/goctl@latest # for Go 1.16 and later - go install github.com/tal-tech/go-zero/tools/goctl@latest + go install github.com/zeromicro/go-zero/tools/goctl@latest ``` make sure goctl is executable. diff --git a/tools/goctl/migrate/mod.go b/tools/goctl/migrate/mod.go index 3258d1e8..408f63e4 100644 --- a/tools/goctl/migrate/mod.go +++ b/tools/goctl/migrate/mod.go @@ -13,7 +13,6 @@ import ( ) const deprecatedGoZeroMod = "github.com/tal-tech/go-zero" - const deprecatedBuilderx = "github.com/tal-tech/go-zero/tools/goctl/model/sql/builderx" const replacementBuilderx = "github.com/zeromicro/go-zero/core/stores/builder" const goZeroMod = "github.com/zeromicro/go-zero" diff --git a/tools/goctl/model/mongo/readme.md b/tools/goctl/model/mongo/readme.md index 1d8521d7..2f6d53f7 100644 --- a/tools/goctl/model/mongo/readme.md +++ b/tools/goctl/model/mongo/readme.md @@ -66,7 +66,7 @@ type User struct { "github.com/globalsign/mgo/bson" cachec "github.com/zeromicro/go-zero/core/stores/cache" - "github.com/tal-tech/go-zero/core/stores/mongoc" + "github.com/zeromicro/go-zero/core/stores/mongoc" ) type UserModel interface { @@ -207,4 +207,4 @@ OPTIONS: types.go本质上与xxxmodel.go无关,只是将type定义部分交给开发人员自己编写了,在xxxmodel.go中,mongo文档的存储结构必须包含 `_id`字段,对应到types中的field为`ID`,model中的findOne,update均以data.ID来进行操作的,当然,如果不符合你的命名风格,你也 可以修改模板,只要保证`id` -在types中的field名称和模板中一致就行。 \ No newline at end of file +在types中的field名称和模板中一致就行。