You need Go installed and set your Go
workplace first.
For editor, I recommend goland or vscode.
# Create a .env file
cp .env.template .env
# Run this project
go run main.go
In Vscode, simply create a launch.json
file in a .vscode
folder, paste the content below, and run debugger.
{
"version": "0.2.0",
"configurations": [
{
"type": "go",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/main.go",
"envFile": "${workspaceFolder}/.env"
}
]
}