From c9481d0eef68d5653c0726ab2b7d3bbed5c152dd Mon Sep 17 00:00:00 2001 From: Viviman Date: Sat, 24 May 2025 14:18:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=90=AF=E5=8A=A8=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 34 ++++++++++++++++++++++++++++++++++ 1-sh.build.sh | 3 ++- go.mod | 2 +- 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..1a83509 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,34 @@ +{ + // 使用 IntelliSense 了解相关属性。 + // 悬停以查看现有属性的描述。 + // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "开发环境", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}", + "args": [ + "-dsn=dm://HY_ZGGL_FRAME:HY_ZGGL_FRAME@10.200.21.19:5296/DAMENG?schema=HY_ZGGL_FRAME" + ], + "env": { + "CGO_ENABLED": "1" + } + }, + { + "name": "生产环境", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${workspaceFolder}", + "args": [ + "-dsn=dm://usr:pwd@ip:port/db?schema=name" + ], + "env": { + "CGO_ENABLED": "1" + } + } + ] +} \ No newline at end of file diff --git a/1-sh.build.sh b/1-sh.build.sh index 0f4cb7d..35b7a94 100755 --- a/1-sh.build.sh +++ b/1-sh.build.sh @@ -1 +1,2 @@ -goreleaser --snapshot --skip-publish --rm-dist \ No newline at end of file +goreleaser --snapshot --skip-publish --rm-dist +# 需要主动下载 dm 的驱动包,放到go-root 的src下面,主动安装 goreleaser \ No newline at end of file diff --git a/go.mod b/go.mod index a71d769..bcce569 100644 --- a/go.mod +++ b/go.mod @@ -12,5 +12,5 @@ require ( github.com/google/uuid v1.6.0 // indirect github.com/spf13/cast v1.7.1 // indirect github.com/yosida95/uritemplate/v3 v3.0.2 // indirect - golang.org/x/text v0.24.0 // indirect + golang.org/x/text v0.25.0 // indirect )