litemigrate/opts.go

10 lines
187 B
Go
Raw Normal View History

package litemigrate
type Option func(m *Migrator)
func WithPreStepHook(fn func(filename string)) Option {
return func(m *Migrator) {
m.preStepHooks = append(m.preStepHooks, fn)
}
}