Browse Source

Merge remote-tracking branch 'origin/master'

# Conflicts:
#	go.mod
master
张献维 3 weeks ago
parent
commit
e499544e11
  1. 34
      .vscode/launch.json
  2. 3
      1-sh.build.sh

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
Loading…
Cancel
Save