Skip to content

chrisindark/go-getting-started

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-getting-started

brew search go

brew install go@1.22.1

go version

mkdir go-getting-started cd go-getting-started

go mod init example/go-getting-started

go get github.com/gin-gonic/gin go get github.com/joho/godotenv

go mod tidy

go run . lsof -i :4000 kill -9

echo $GOPATH echo $(go env GOPATH)

curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin

vi ~/.zshrc alias air='$(go env GOPATH)/bin/air' source ~/.zshrc

air init

// to run server with air live-reload: air air -c .air.toml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages