update example to use proto3

This commit is contained in:
Asim
2015-05-09 00:42:07 +01:00
parent 45a619c2c6
commit e7355eaeb5
4 changed files with 10 additions and 30 deletions

View File

@@ -2,7 +2,6 @@ package handler
import (
"code.google.com/p/go.net/context"
"github.com/golang/protobuf/proto"
log "github.com/golang/glog"
"github.com/myodc/go-micro/server"
@@ -14,7 +13,7 @@ type Example struct{}
func (e *Example) Call(ctx context.Context, req *example.Request, rsp *example.Response) error {
log.Info("Received Example.Call request")
rsp.Msg = proto.String(server.Id + ": Hello " + req.GetName())
rsp.Msg = server.Id + ": Hello " + req.Name
return nil
}