Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The path is not same with you example. protoc --proto_path=.:$GOPATH/src --go_out=. --micro_out=. proto/srv/srv.proto #10

Open
ying2025 opened this issue Nov 17, 2019 · 0 comments

Comments

@ying2025
Copy link

zhr@ubuntu:~/gospace/src/micro/rpc$ micro new --type "srv" micro/rpc/srv
Creating service go.micro.srv.srv in /home/zhr/gospace/src/micro/rpc/srv
├── main.go
├── generate.go
├── plugin.go
├── handler
│   └── srv.go
├── subscriber
│   └── srv.go
├── proto/srv
│   └── srv.proto
├── Dockerfile
├── Makefile
└── README.md

download protobuf for micro:

brew install protobuf
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
go get -u github.com/micro/protoc-gen-micro

cd /home/zhr/gospace/src/micro/rpc/srv
protoc --proto_path=.:$GOPATH/src --go_out=. --micro_out=. proto/srv/srv.proto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant