1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/pkg/drivers/options.go

16 lines
219 B
Go
Raw Normal View History

package drivers
type (
options struct {
defaultDriver string
}
Option func(drv Driver, opts *options)
)
func AsDefault() Option {
return func(drv Driver, opts *options) {
opts.defaultDriver = drv.Name()
}
}