You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
panic: *goout.HelloRequest is not a proto.Marshaler
goroutine 1 [running]:
main.main()
D:/GoLand 2021.1.1/workspace/background/gnetserver/pkg/grpc/sayhello/clinet/sayhelloclient.go:27 +0x1fe
proto文件生成命令
protoc --go_out=plugins=rpcx:. *.proto
proto文件
syntax = "proto3";
option go_package = "sayhello";
package helloworld;
// The greeting service definition.
service Greeter {
// Sends a greeting
rpc SayHello (HelloRequest) returns (HelloReply) {}
}
// The request message containing the user's name.
message HelloRequest {
string name = 1;
}
// The response message containing the greetings
message HelloReply {
string message = 1;
}
使用该项目示例时,客户端发送消息会报如标题错误
完整报错信息
proto文件生成命令
proto文件
服务端
客户端
The text was updated successfully, but these errors were encountered: