[TD-6337]<docs>: fix taosdemo.go compile and build guidelines [ci skip]

This commit is contained in:
Huo Linhe 2021-08-24 21:30:51 +08:00
parent 7dcf682872
commit 9dc8e65879
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连接器的使用