mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
34c8c02258
* Externalized HTML drivers * Fixed unit tests * Updated logging * Added support to set default driver * Updated GetIn and SetIn helpers
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()
|
|
}
|
|
}
|