Closed kaisawind closed 4 years ago
This is fixed by using an M import parameter. See https://jbrandhorst.com/post/go-protobuf-tips/ for an example.
@johanbrandhorst Maybe I didn't make it clear,I'm sorry about that.
We can use M to fix import packages, but how about really codes?
*.pb.go
has been changed, but *pb.gw.go
not.
Please take a look at empty.Empty
.
*.pb.go
*pb.gw.go
By the way, all *.pb.go
and *pb.gw.go
imports have been changed.
*.pb.go
*pb.gw.go
That one is a bug in the gRPC gateway generator. See https://jbrandhorst.com/post/gogoproto/
That one is a bug in the gRPC gateway generator. See https://jbrandhorst.com/post/gogoproto/
Thank you very much.
For example
the code will be generate just like below
empty.Empty
can not be found by go when it be replaced bygithub.com/gogo/protobuf/types
. How can i fix it?