If you ended up here because of the following error:
--grpc-gateway_out: 11:1: expected 'IDENT', found 'import'
And you noticed the generated Go code was missing the package name, it could be due to the way the go_package
is declared.
This works for the go-grpc, if you want to generate it directly into a directory
option go_package = "pinger/";
However, the go-grpc-gateway does not like this.
This is a workaround:
option go_package = "pinger/;pinger";
However, the correct syntax is:
option go_package = "/pinger";