Install magefile:
go get -u -d github.com/magefile/mage
cd $GOPATH/src/github.com/magefile/mage
go run bootstrap.go
or do:
git clone https://github.com/magefile/mage
cd mage
go run bootstrap.go
Download and install protobuf
Run the following commands
go get -u google.golang.org/grpc
go get -u github.com/golang/protobuf/protoc-gen-go
Generating code via proto files
mkdir -p proto-gen/helloworld; protoc -I model/proto model/proto/helloworld.proto --go_out=plugins=grpc:proto-gen/helloworld
mkdir -p proto-gen/health; protoc -I model/proto model/proto/health.proto --go_out=plugins=grpc:proto-gen/health
-Health Probe for GRPC -Testing GRPC -Project Layout
-How we build GRPC services at Namely? -Awesome GRPC - GRPC Ecosystem