1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/pkg/drivers/options.go
Tim Voronov 34c8c02258
Refactoring/externalized html (#234)
* Externalized HTML drivers

* Fixed unit tests

* Updated logging

* Added support to set default driver

* Updated GetIn and SetIn helpers
2019-02-19 18:10:18 -05:00

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