Air is yet another live-reloading command line utility for developing Go applications.
go install github.com/air-verse/air@latestonce air utility is installed, simply run
air- Copy
sample.config.json& createconfig.jsonfile in the same directory - Update config values in
config.json
protoc --go_out=. --go-grpc_out=. **/*.protoStarting grpcui tool
Note: For this you need to set env variable environment to development
grpcui -plaintext localhost:3001Installation
go install github.com/google/wire/cmd/wire@latestUse following command to create wire generated files across all the directories in the project.
wire ./...Install swag by using:
go install github.com/swaggo/swag/cmd/swag@latestgenerate swagger docs
go generate ./...sqlc is distributed as a single binary with zero dependencies.
macOS
brew install sqlcUbuntu
sudo snap install sqlcgo install (Go >= 1.17)
go install github.com/sqlc-dev/sqlc/cmd/sqlc@latestgenerate sqlc generated files
sqlc generate ./...