$micro new helloworld
Creating service go.micro.service.helloworld in helloworld
.
├── main.go
├── generate.go
├── plugin.go
├── handler
│ └── helloworld.go
├── subscriber
│ └── helloworld.go
├── proto
│ └── helloworld
│ └── helloworld.proto
├── Dockerfile
├── Makefile
├── README.md
├── .gitignore
└── go.mod
download protoc zip packages (protoc-$VERSION-$PLATFORM.zip) and install:
visit https://github.com/protocolbuffers/protobuf/releases
download protobuf for micro:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/micro/v2/cmd/protoc-gen-micro
compile the proto file helloworld.proto:
cd helloworld
make proto