Skip to content

Instantly share code, notes, and snippets.

@wgcvc
Created January 24, 2024 15:13
Show Gist options
  • Select an option

  • Save wgcvc/7d3070ff4d05f8b5c6866294aec10c6d to your computer and use it in GitHub Desktop.

Select an option

Save wgcvc/7d3070ff4d05f8b5c6866294aec10c6d to your computer and use it in GitHub Desktop.
Visual Studio Code Launch Config for Golang (.vscode/launch.json)
{
// 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": "Go Dynamic Launch",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${fileDirname}",
"env": {
"APP_ENV": "dev",
"APP_LOG_PATH": "${workspaceFolder}/app.log",
},
"envFile": "${workspaceFolder}/.env",
},
{
"name": "PRISE Scheduler",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "cmd/scheduler/price.go",
"env": {
"APP_ENV": "dev",
"APP_LOG_PATH": "${workspaceFolder}/app.log",
},
"envFile": "${workspaceFolder}/.env",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment