You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/06/29 14:14:47 UTC
[dubbo-go] branch 1.5 updated: Djh/doc imports (#1282)
This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch 1.5
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git
The following commit(s) were added to refs/heads/1.5 by this push:
new 5b7b35b Djh/doc imports (#1282)
5b7b35b is described below
commit 5b7b35bdcad51c7bf12e6e1cf9fac2b74f09e307
Author: Mulavar <97...@qq.com>
AuthorDate: Tue Jun 29 22:14:40 2021 +0800
Djh/doc imports (#1282)
* add imports to readme
* format readme
---
README.md | 5 +++++
README_CN.md | 7 ++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 906c08f..5aa01c6 100644
--- a/README.md
+++ b/README.md
@@ -144,6 +144,11 @@ You can know more about dubbo-go by its [roadmap](https://github.com/apache/dubb
![feature](./doc/pic/arch/dubbo-go-arch.png)
+## Simplified Imports
+When you use the dubbo-go, you may need to import many packages to support some initialization of components like registry, protocol etc. To simplify these imports, we created a project named [imports](https://github.com/dubbogo/imports), it help you integrate the default component that dubbo-go providered.
+For example, if you want to use dubbo-go with zookeeper registry, dubbo protocoal and nacos config center, you just need to add `import github.com/dubbogo/imports/dubbo/nacos/zk` to your code.
+You can find more support in the [imports](https://github.com/dubbogo/imports).
+
## Document
[dubbo-doc](http://dubbo.apache.org/zh/blog/) or [dubbo-go-doc-list](http://alexstocks.github.io/html/dubbogo.html)
diff --git a/README_CN.md b/README_CN.md
index 060b5de..0d12a82 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -8,7 +8,7 @@
---
-Apache Dubbo Go 语言实现,架起java和go之间的桥梁,与 gRPC/Spring Cloud 生态互联互通,带领Java生态享受云原生时代的技术红利。
+Apache Dubbo Go 语言实现,架起 Java 和 Go 之间的桥梁,与 gRPC/Spring Cloud 生态互联互通,带领 Java 生态享受云原生时代的技术红利。
## 证书 ##
@@ -143,6 +143,11 @@ Apache License, Version 2.0
![feature](./doc/pic/arch/dubbo-go-arch.png)
+## 简化 import
+当使用 dubbo-go 提供的服务时,你需要通过 import 引入大量的组件,如注册中心、RPC 协议、配置中心等等。为了简化这一部分工作,我们创建了项目 [imports](https://github.com/dubbogo/imports),该项目集成了 dubbo-go 的内置组件,能够帮助你更简易使用 dubbo-go 提供的组件集合。
+比如当你使用 dubbo-go 的服务时,你想要指定使用 zookeeper 注册中心、dubbo 协议、nacos 配置中心,只需在你的代码中加入 `import github.com/dubbogo/imports/dubbo/nacos/zk`。
+如果你需要更多简化 import 相关的内容支持,请访问 [imports](https://github.com/dubbogo/imports)。
+
## 文档
请访问 [dubbo官方文档中关于 dubbo-go 的系列文档](http://dubbo.apache.org/zh/blog/) 或 [过往dubbo-go文档列表](http://alexstocks.github.io/html/dubbogo.html)。