micro/util/http/options.go
Asim Aslam 563768b58a
v3 refactor (#1868)
* Move to v3

Co-authored-by: Ben Toogood <bentoogood@gmail.com>
2020-07-27 13:22:00 +01:00

16 lines
224 B
Go

package http
import "github.com/micro/go-micro/v3/router"
type Options struct {
Router router.Router
}
type Option func(*Options)
func WithRouter(r router.Router) Option {
return func(o *Options) {
o.Router = r
}
}