yothgewalt / go-materials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go: The Fundamentals and Design Patterns

Visual Studio Code (Extensions)

How to use Air (Hot Reload)

  1. Install Air (Hot Reload) with Go Installer
$ go install github.com/cosmtrek/air@latest
  1. Initialize an Air file.
$ air init

How to configure Air (Hot Reload)

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

  1. Add ;export $(grep -v '^#' .env | xargs); into .air.toml at bin = "..."
bin = ";export $(grep -v '^#' .env | xargs); ./build/main"

Configuration on Windows

  1. 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 Guide Styles

Postman Installation

About


Languages

Language:Go 100.0%