Vendored
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"recommendations": ["golang.go"]
|
||||
}
|
||||
Vendored
+25
@@ -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}"
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+23
@@ -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
|
||||
}
|
||||
}
|
||||
Vendored
+21
@@ -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": [] }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user