diff --git a/client/rpc/rpc.go b/client/rpc/rpc.go index 5efff382..70371c05 100644 --- a/client/rpc/rpc.go +++ b/client/rpc/rpc.go @@ -1,9 +1,11 @@ +// Package rpc provides an rpc client package rpc import ( "github.com/micro/go-micro/client" ) +// NewClient returns a new micro client interface func NewClient(opts ...client.Option) client.Client { return client.NewClient(opts...) } diff --git a/server/rpc/rpc.go b/server/rpc/rpc.go index 98e1de1c..38278ffb 100644 --- a/server/rpc/rpc.go +++ b/server/rpc/rpc.go @@ -1,9 +1,11 @@ +// Package rpc provides an rpc server package rpc import ( "github.com/micro/go-micro/server" ) +// NewServer returns a micro server interface func NewServer(opts ...server.Option) server.Server { return server.NewServer(opts...) }