minor cleanup

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-10-28 17:48:39 +03:00
parent f2413a7789
commit 0e6efda528
4 changed files with 17 additions and 24 deletions

View File

@@ -49,8 +49,8 @@ type Options struct {
Context context.Context
}
func newOptions(opts ...Option) Options {
opt := Options{
func NewOptions(opts ...Option) Options {
options := Options{
Context: context.Background(),
Server: server.DefaultServer,
Client: client.DefaultClient,
@@ -67,10 +67,10 @@ func newOptions(opts ...Option) Options {
}
for _, o := range opts {
o(&opt)
o(&options)
}
return opt
return options
}
type Option func(*Options)