We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
an error at documment: https://go-zero.dev/docs/tasks/grpc/client/quickstart
func main() { var clientConf zrpc.RpcClientConf conf.MustLoad("etc/client.yaml", &clientConf) conn := zrpc.MustNewClient(clientConf) resp, err := client.Ping(context.Background(), &greet.Request{}) if err != nil { log.Fatal(err) return } log.Println(resp) }
correct code
func main() { var clientConf zrpc.RpcClientConf conf.MustLoad("etc/client.yaml", &clientConf) conn := zrpc.MustNewClient(clientConf) client := greet.NewGreetClient(conn.Conn()) resp, err := client.Ping(context.Background(), &greet.Request{}) if err != nil { log.Fatal(err) return } log.Println(resp) }
To Reproduce Steps to reproduce the behavior, if applicable:
The code is
The error is
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environments (please complete the following information):
More description Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Thanks for your contribution, we have already fix it.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
an error at documment: https://go-zero.dev/docs/tasks/grpc/client/quickstart
correct code
To Reproduce
Steps to reproduce the behavior, if applicable:
The code is
The error is
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environments (please complete the following information):
More description
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: