Merge pull request #7562 from taosdata/docs/TD-6337

[TD-6337]<docs>: fix taosdemo.go compile and build guidelines [ci skip]
This commit is contained in:
Elias Soong 2021-08-24 22:11:09 +08:00 committed by GitHub
commit c7d9e5f0bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -971,8 +971,12 @@ Go连接器支持的系统有
``` ```
在taosdemo.go所在目录下进行编译和执行 在taosdemo.go所在目录下进行编译和执行
```sh ```sh
go mod init *demo* go mod init taosdemo
go build ./demo -h fqdn -p serverPort go get github.com/taosdata/driver-go/taosSql
# use win branch in Windows platform.
#go get github.com/taosdata/driver-go/taosSql@win
go build
./taosdemo -h fqdn -p serverPort
``` ```
### Go连接器的使用 ### Go连接器的使用