From 517e264afd7504225dfbf8bd1e0f6980416f4659 Mon Sep 17 00:00:00 2001 From: Skyenought Date: Thu, 11 Jan 2024 19:19:16 +0800 Subject: [PATCH] feat: add nacos v2 --- hack/util.sh | 23 +++++++---------------- nacos/v2/README.md | 10 ++++++++-- nacos/v2/README_CN.md | 8 +++++++- 3 files changed, 22 insertions(+), 19 deletions(-) diff --git a/hack/util.sh b/hack/util.sh index 7c41570..91b10a2 100644 --- a/hack/util.sh +++ b/hack/util.sh @@ -4,20 +4,11 @@ # returns an array contains mod path function util::find_modules() { find . -not \( \ - \( \ - -path './output' \ - -o -path './.git' \ - -o -path '*/third_party/*' \ - -o -path '*/vendor/*' \ - \) -prune \ - \) -name 'go.mod' -print0 | xargs -0 -I {} dirname {} | grep './nacos/v2' && find . -not \( \ - \( \ - -path './output' \ - -o -path './.git' \ - -o -path '*/third_party/*' \ - -o -path '*/vendor/*' \ - \) -prune \ - \) -name 'go.mod' -print0 | xargs -0 -I {} dirname {} | grep -v './nacos/v2' - + \( \ + -path './output' \ + -o -path './.git' \ + -o -path '*/third_party/*' \ + -o -path '*/vendor/*' \ + \) -prune \ + \) -name 'go.mod' -print0 | xargs -0 -I {} dirname {} } - diff --git a/nacos/v2/README.md b/nacos/v2/README.md index b952479..dbc8c43 100644 --- a/nacos/v2/README.md +++ b/nacos/v2/README.md @@ -232,7 +232,13 @@ func main() { | serverPort | 8848 | nacos server port | | namespace | | the namespaceId of nacos | + ## Compatibility -The server of Nacos2.0 is fully compatible with 1.X -nacos-sdk-go. [see](https://nacos.io/en-us/docs/2.0.0-compatibility.html) +- This package use Nacos2.x client. + +- Nacos2.x detail [see](https://nacos.io/en-us/docs/v2/upgrading/2.0.0-compatibility.html) + +- Supported Go version over 1.16 + +- Supported Nacos version over 2.x diff --git a/nacos/v2/README_CN.md b/nacos/v2/README_CN.md index 8f1dd63..f7cfd23 100644 --- a/nacos/v2/README_CN.md +++ b/nacos/v2/README_CN.md @@ -234,5 +234,11 @@ func main() { ## 兼容性 -Nacos 2.0 和 1.X 版本的 nacos-sdk-go 是完全兼容的,[详情](https://nacos.io/en-us/docs/2.0.0-compatibility.html) +- 使用 Nacos2.x 客户端 + +- Nacos 2.x [详细信息](https://nacos.io/en-us/docs/v2/upgrading/2.0.0-compatibility.html) + +- Go 版本不低于 1.16 + +- 支持Nacos 2.x