update example to use proto3
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user