-
Go: https://marketplace.visualstudio.com/items?itemName=golang.Go
-
Error Lens: https://marketplace.visualstudio.com/items?itemName=usernamehw.errorlens
-
Go Group Imports: https://marketplace.visualstudio.com/items?itemName=aleksandra.go-group-imports
- Install
Air (Hot Reload)
with Go Installer
$ go install github.com/cosmtrek/air@latest
- Initialize an Air file.
$ air init
How to Inject Environment variables into Air execution You need to use the command of your OS to export and use it.
Configuration on Mac OS X
- Add
;export $(grep -v '^#' .env | xargs);
into .air.toml at bin = "..."
bin = ";export $(grep -v '^#' .env | xargs); ./build/main"
Configuration on Windows
- Create a
.bat
file and insert the below code. (And Run it!)
@FOR /F "tokens=*" %%a IN ('FINDSTR /V /B "#" .env') DO SET "%%a"
air
Go Packages (https://pkg.go.dev)
-
Go Fiber: https://docs.gofiber.io
-
ZeroLog: https://github.com/rs/zerolog
-
Uber Styles: https://github.com/uber-go/guide
-
Google Styles: https://google.github.io/styleguide/go/
- Postman: https://www.postman.com/downloads/