I have a protobuf definition of an interface. I autogenerate client functions for that interface using protoc --go_out=... --go-grpc_out=... file.proto
.
The autogenerated functions all have this code snippet:
if err != nil {
return nil, err
}
return out, nil // out is what the server returned to this client
I want all autogenerated functions to not have this check, and instead directly return out, err
. Is there a protoc
or go-grpc_out
option that alters autogeneration behaviour in this way?