diff --git a/go/README.md b/go/README.md index 9fc49474d79..831cc10c426 100644 --- a/go/README.md +++ b/go/README.md @@ -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 ``` diff --git a/go/helloworld/helloworld.pb.go b/go/helloworld/helloworld.pb.go index 399adda5eaf..37b659ec0de 100644 --- a/go/helloworld/helloworld.pb.go +++ b/go/helloworld/helloworld.pb.go @@ -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, }, },