diff --git a/.gitignore b/.gitignore index 6f6f5e6..f0751bf 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ # Go workspace file go.work go.work.sum + +env/.env.local \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..f7ec3ab --- /dev/null +++ b/.vscode/launch.json @@ -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", + } + ] +} \ No newline at end of file diff --git a/env/.env.example b/env/.env.example new file mode 100644 index 0000000..22818f9 --- /dev/null +++ b/env/.env.example @@ -0,0 +1,5 @@ +APP_ENV=debug +APP_NAME=youtube-example +LOG_LEVEL=debug +CLIENT_ID=example +CLIENT_SECRET=example \ No newline at end of file