update the comment

This commit is contained in:
Asim 2015-12-20 23:52:58 +00:00
parent 2c983ef021
commit cc720dd125

View File

@ -5,19 +5,15 @@ Go micro provides a pluggable library to build microservices.
micro "github.com/micro/go-micro" micro "github.com/micro/go-micro"
) )
service := micro.New( service := micro.NewService()
micro.Registry(r),
micro.Broker(b),
)
h := service.Server().NewHandler(&Greeter{}) h := service.Server().NewHandler(&Greeter{})
service.Server().Handle(h) service.Server().Handle(h)
service.Run() service.Run()
req := service.Client.NewRequest(service, method, request) req := service.Client().NewRequest(service, method, request)
rsp := response{} rsp := response{}
err := service.Client.Call(req, rsp) err := service.Client().Call(req, rsp)
*/ */