From a10bbd4cdf4bc7f4d3476f7da7c2e1d927e90be6 Mon Sep 17 00:00:00 2001
From: t_max <1172915550@qq.com>
Date: Fri, 2 Aug 2024 15:28:32 +0800
Subject: [PATCH] docs: fix go example anchor
---
docs/zh/08-develop/01-connect/index.md | 10 +++++-----
docs/zh/08-develop/02-sql.md | 8 ++++----
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/docs/zh/08-develop/01-connect/index.md b/docs/zh/08-develop/01-connect/index.md
index 89c3dd7f69..5a0732f92b 100644
--- a/docs/zh/08-develop/01-connect/index.md
+++ b/docs/zh/08-develop/01-connect/index.md
@@ -540,15 +540,15 @@ DSN 的详细说明和如何使用详见 [连接功能](../../reference/connecto
```
- ```go
- {{#include docs/examples/go/connect/restexample/main.go}}
- ```
+```go
+{{#include docs/examples/go/connect/restexample/main.go}}
+```
-不支持
+ 不支持
- C# 只支持 WebSocket 连接与原生连接
+ 不支持
diff --git a/docs/zh/08-develop/02-sql.md b/docs/zh/08-develop/02-sql.md
index 5476154158..2bc428bebf 100644
--- a/docs/zh/08-develop/02-sql.md
+++ b/docs/zh/08-develop/02-sql.md
@@ -38,7 +38,7 @@ REST API:通过 `curl` 命令进行数据写入和查询操作。
```go
-{{#include docs/examples/go/queryreqid/main.go:query_id}}
+{{#include docs/examples/go/sqlquery/main.go:create_db_and_table}}
```
@@ -101,7 +101,7 @@ NOW 为系统内部函数,默认为客户端所在计算机当前时间。 NOW
```go
-{{#include docs/examples/go/sqlquery/main.go:create_db_and_table}}
+{{#include docs/examples/go/sqlquery/main.go:insert_data}}
```
@@ -157,7 +157,7 @@ curl --location -uroot:taosdata 'http://127.0.0.1:6041/rest/sql' \
```go
-{{#include docs/examples/go/sqlquery/main.go:insert_data}}
+{{#include docs/examples/go/sqlquery/main.go:select_data}}
```
@@ -218,7 +218,7 @@ reqId 可用于请求链路追踪,reqId 就像分布式系统中的 traceId
```go
-{{#include docs/examples/go/sqlquery/main.go:select_data}}
+{{#include docs/examples/go/queryreqid/main.go:query_id}}
```