From 48820d719a66144492cd0c69f60265219855ce8d Mon Sep 17 00:00:00 2001 From: dingbo Date: Wed, 15 Jun 2022 16:58:59 +0800 Subject: [PATCH] docs: connnect go --- docs/en/05-develop/01-connect/03-go.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/en/05-develop/01-connect/03-go.md b/docs/en/05-develop/01-connect/03-go.md index 313ae2aedc..457583fec9 100644 --- a/docs/en/05-develop/01-connect/03-go.md +++ b/docs/en/05-develop/01-connect/03-go.md @@ -7,7 +7,7 @@ pagination_next: develop/insert-data import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -## Initialize Project +## Initialize Module ``` go mod init tdengine.com/example @@ -70,4 +70,14 @@ Copy code bellow to main.go. {{#include docs/examples/go/connectexample/main.go}} ``` -Then execute `go run main.go` to test the connection. \ No newline at end of file +Then download dependencies by execute command: + +``` +go mod tidy +``` + +Finally, test the connection: + +``` +go run main.go +``` \ No newline at end of file -- GitLab