mirror of
https://github.com/MontFerret/ferret.git
synced 2025-11-06 08:39:09 +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()
|
||
|
|
}
|
||
|
|
}
|