mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
16 lines
219 B
Go
16 lines
219 B
Go
|
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()
|
||
|
}
|
||
|
}
|