Skip to content

Commit

Permalink
added env and launch.json vscode
Browse files Browse the repository at this point in the history
  • Loading branch information
allan committed Jul 8, 2024
1 parent 153483c commit cdab2d3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@
# Go workspace file
go.work
go.work.sum

env/.env.local
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// 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": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"cwd": "${workspaceFolder}",
"program": "main.go",
"env": {
"APP_ENV": "local"
},
"envFile": "${workspaceFolder}/env/.env.local",
}
]
}
5 changes: 5 additions & 0 deletions env/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
APP_ENV=debug
APP_NAME=youtube-example
LOG_LEVEL=debug
CLIENT_ID=example
CLIENT_SECRET=example

0 comments on commit cdab2d3

Please sign in to comment.