Browse Source

增加启动文件操作

master
Viviman 2 weeks ago
parent
commit
c9481d0eef
  1. 34
      .vscode/launch.json
  2. 3
      1-sh.build.sh
  3. 2
      go.mod

34
.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"
}
}
]
}

3
1-sh.build.sh

@ -1 +1,2 @@
goreleaser --snapshot --skip-publish --rm-dist
goreleaser --snapshot --skip-publish --rm-dist
# 需要主动下载 dm 的驱动包,放到go-root 的src下面,主动安装 goreleaser

2
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
)

Loading…
Cancel
Save