-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
A question about generating file protoc-gen-grpc-gateway/gengateway/template.go #864
Comments
@DaHuMao, per the issue template, can you please document the steps that you have tried to alleviate your problem? |
@achew22 I need to insert some custom code into the *.pb.gw.go, but I don't want to have to modify it every time I generate a *.pb.gw.go file, so I tried to modify the generated template file in gprc-gateway: template.go.After the modification, I generated the *.pb.gw.go file again. I found that template.go was not called at all when the file was generated。Is the generated template not the template.go file in the github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/gengateway/ directory? |
@DaHuMao did you reinstall the generator after changing the template file? If there's something you want changed about the generated file, why not raise an issue and make a pull request, maybe everyone who uses this project could use it? |
@johanbrandhorst I am just a rookie ,who just starting to learn this aspect. |
@johanbrandhorst I had reinstalled protobuf ,but i did not work |
I mean |
I'm going to close this as it's not really an issue related to the repo. Please join the slack channel if you need more direct assistance. |
@johanbrandhorst OK,Thank you very much! |
@DaHuMao But before trying directly modifying |
@yugui Thank you for your advice. But i want to handle the error and the message in *.pb.gw.go,befor they passed into the client function,not just add some function to *.pb.gw.go |
Hello:
I am a rookie. I have a question. When I modified the template.go file in the github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway/gengateway/ directory, the *.pb.gw.go file did not change.
Looking forward to your reply!
The text was updated successfully, but these errors were encountered: