仓库自包含化:Docker/CI/文档/规范入库,路由分组拆分
CI / test (push) Successful in 15s

This commit is contained in:
Wang Defa
2026-07-09 19:18:04 +08:00
parent b9a3e97e84
commit 3e0389c1e9
83 changed files with 20241 additions and 248 deletions
+3
View File
@@ -0,0 +1,3 @@
{
"recommendations": ["golang.go"]
}
+25
View File
@@ -0,0 +1,25 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "启动 oci-portal 后端",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/cmd/server",
"cwd": "${workspaceFolder}",
"env": {
"DATA_KEY": "dev-data-key",
"JWT_SECRET": "dev-jwt-secret",
"ADMIN_PASSWORD": "admin123"
}
},
{
"name": "调试当前测试文件",
"type": "go",
"request": "launch",
"mode": "test",
"program": "${fileDirname}"
}
]
}
+23
View File
@@ -0,0 +1,23 @@
{
"go.useLanguageServer": true,
"go.toolsManagement.autoUpdate": true,
"go.testFlags": ["-count=1"],
"[go]": {
"editor.defaultFormatter": "golang.go",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"[go.mod]": {
"editor.defaultFormatter": "golang.go",
"editor.formatOnSave": true
},
"gopls": {
"ui.diagnostic.staticcheck": true,
"formatting.local": "oci-portal"
},
"files.exclude": {
"**/.DS_Store": true
}
}
+21
View File
@@ -0,0 +1,21 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "go: build",
"type": "shell",
"command": "go build ./...",
"group": { "kind": "build", "isDefault": true },
"problemMatcher": ["$go"]
},
{
"label": "go: test",
"type": "shell",
"command": "go test ./...",
"group": { "kind": "test", "isDefault": true },
"problemMatcher": ["$go"]
},
{ "label": "go: vet", "type": "shell", "command": "go vet ./...", "problemMatcher": ["$go"] },
{ "label": "go: tidy", "type": "shell", "command": "go mod tidy", "problemMatcher": [] }
]
}