lint fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-09-30 21:13:13 +03:00
parent 7b2e3cc8aa
commit 3247d144a8
14 changed files with 62 additions and 46 deletions

View File

@@ -16,15 +16,15 @@ type Options struct {
Name string
Gateway string
Network string
Id string
ID string
Address string
Precache bool
}
// Id sets Router Id
func Id(id string) Option {
// ID sets Router Id
func ID(id string) Option {
return func(o *Options) {
o.Id = id
o.ID = id
}
}
@@ -80,7 +80,7 @@ func Name(n string) Option {
// NewOptions returns router default options
func NewOptions(opts ...Option) Options {
options := Options{
Id: id.Must(),
ID: id.Must(),
Network: DefaultNetwork,
Register: register.DefaultRegister,
Logger: logger.DefaultLogger,