Installiere Go (mit brew install go)
Navigiere an den zukünftigen Projektort:
cd documents/projects/gomkdir goLearnProjectFoldercd goLearnProjectFolderErstelle ein neues modul: go mod init <Name>
Öffne VS Code: code . (how to install code .)
erstelle ein file in VS Code <name>.go
Füge ein Basic-Code ein:
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
führe es mit go run . aus oder mit go run <name>.go
Using Air with Go to implement live reload - LogRocket Blog
https://github.com/cosmtrek/air
git clone <https://github.com/m-mattia-m/go-project>cd go-projectgo installgo run main.go oder go run .