diff --git a/docs/en/07-develop/01-connect/index.md b/docs/en/07-develop/01-connect/index.md index 720f8e2384c565d5494ce7d84d531188dae96fe0..df793f6d3f35cb8d3a9e25f909464c724a2a05c0 100644 --- a/docs/en/07-develop/01-connect/index.md +++ b/docs/en/07-develop/01-connect/index.md @@ -98,11 +98,7 @@ pip install git+https://github.com/taosdata/taos-connector-python.git Just need to add `driver-go` dependency in `go.mod` . ```go-mod title=go.mod -module goexample - -go 1.17 - -require github.com/taosdata/driver-go/v2 develop +{{#include docs/examples/go/go.mod}} ``` :::note diff --git a/docs/examples/go/go.mod b/docs/examples/go/go.mod index cb1fec0194da6a10c88471ae8ebe7bfc4c5d8e84..b0f6fbcd50d54c232c322ec23621d389f8a1f46d 100644 --- a/docs/examples/go/go.mod +++ b/docs/examples/go/go.mod @@ -2,4 +2,4 @@ module goexample go 1.17 -require github.com/taosdata/driver-go/v2 v2.0.2 +require github.com/taosdata/driver-go/v2 latest diff --git a/docs/zh/07-develop/01-connect/index.md b/docs/zh/07-develop/01-connect/index.md index b1857b973932b4f9cfd1564b709dd79f26701951..a56577e2be60afe37ec6b71cff90594a64c91b13 100644 --- a/docs/zh/07-develop/01-connect/index.md +++ b/docs/zh/07-develop/01-connect/index.md @@ -99,11 +99,7 @@ pip install git+https://github.com/taosdata/taos-connector-python.git 编辑 `go.mod` 添加 `driver-go` 依赖即可。 ```go-mod title=go.mod -module goexample - -go 1.17 - -require github.com/taosdata/driver-go/v2 develop +{{#include docs/examples/go/go.mod}} ``` :::note