Skip to content

Commit

Permalink
VSCode: Debug launch config
Browse files Browse the repository at this point in the history
  • Loading branch information
koltyakov committed Oct 31, 2023
1 parent 4c1b413 commit 52fd26f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "main.go",
"env": {},
"args": ["serve"]
}
]
}
15 changes: 12 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,20 @@
"editor.renderWhitespace": "all",
"window.zoomLevel": 0,
"go.formatTool": "goimports",
"go.testFlags": ["-count=1", "-v"],
"go.formatFlags": ["-s", "-w"],
"go.testFlags": [
"-count=1",
"-v"
],
"go.formatFlags": [
"-s",
"-w"
],
"go.lintOnSave": "file",
"go.lintTool": "golangci-lint",
"go.lintFlags": ["--fast", "--auto-fix"],
"go.lintFlags": [
"--fast",
"--auto-fix"
],
"files.exclude": {
"**/*_test.go": false,
"**/*_gen.go": true,
Expand Down

0 comments on commit 52fd26f

Please sign in to comment.