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 )