提交 48820d71 编写于 作者: D dingbo

docs: connnect go

上级 2b1ac2ac
...@@ -7,7 +7,7 @@ pagination_next: develop/insert-data ...@@ -7,7 +7,7 @@ pagination_next: develop/insert-data
import Tabs from '@theme/Tabs'; import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem'; import TabItem from '@theme/TabItem';
## Initialize Project ## Initialize Module
``` ```
go mod init tdengine.com/example go mod init tdengine.com/example
...@@ -70,4 +70,14 @@ Copy code bellow to main.go. ...@@ -70,4 +70,14 @@ Copy code bellow to main.go.
{{#include docs/examples/go/connectexample/main.go}} {{#include docs/examples/go/connectexample/main.go}}
``` ```
Then execute `go run main.go` to test the connection. Then download dependencies by execute command:
\ No newline at end of file
```
go mod tidy
```
Finally, test the connection:
```
go run main.go
```
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册