fix linting (#4)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
@@ -2,12 +2,15 @@ package http
|
||||
|
||||
import "github.com/unistack-org/micro/v3/router"
|
||||
|
||||
// Options struct
|
||||
type Options struct {
|
||||
Router router.Router
|
||||
}
|
||||
|
||||
// Option func
|
||||
type Option func(*Options)
|
||||
|
||||
// WithRouter sets the router.Router option
|
||||
func WithRouter(r router.Router) Option {
|
||||
return func(o *Options) {
|
||||
o.Router = r
|
||||
|
Reference in New Issue
Block a user