Golang - protoc doesn't generate stub for client and server


In case you bump into this issue, you can try the following command. This is kinda tricky, as sometimes you executed the code successfully but didn't generate stub for client and server


Notice i bolded the loggingStream - this must be a valid directory that you need to specify. For example, you might have the following directory

-src
   - server
   - client
   - loggingStream (this is where your proto files resides)



protoc -I loggingstream/ loggingstream/loggingStream.proto --go_out=plugins=grpc:loggingstream

or you could just go into the proto directory and 

protoc --go_out=plugins=grpc:. loggingStream.proto


Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm