micro/util/http/options.go
Vasiliy Tolstov 40b0870cf8
fix linting (#4)
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2020-11-03 01:08:23 +03:00

19 lines
305 B
Go

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
}
}