fix helloworld README and update the generated code

pull/3109/head
iamqizhao 10 years ago
parent f8b3a2b99c
commit 5eed2a60ca
  1. 2
      go/README.md
  2. 4
      go/helloworld/helloworld.pb.go

@ -45,5 +45,5 @@ OPTIONAL - Rebuilding the generated code
$ go get -a github.com/golang/protobuf/protoc-gen-go
$
$ # from this dir; invoke protoc
$ protoc -I ../protos ../protos/helloworld.proto --go_out=plugins=grpc:.
$ protoc -I ../protos ../protos/helloworld.proto --go_out=plugins=grpc:helloworld
```

@ -66,7 +66,7 @@ func NewGreeterClient(cc *grpc.ClientConn) GreeterClient {
func (c *greeterClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
out := new(HelloReply)
err := grpc.Invoke(ctx, "/helloworld.Greeter/sayHello", in, out, c.cc, opts...)
err := grpc.Invoke(ctx, "/helloworld.Greeter/SayHello", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
@ -101,7 +101,7 @@ var _Greeter_serviceDesc = grpc.ServiceDesc{
HandlerType: (*GreeterServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "sayHello",
MethodName: "SayHello",
Handler: _Greeter_SayHello_Handler,
},
},

Loading…
Cancel
Save