10 lines
187 B
Go
10 lines
187 B
Go
package litemigrate
|
|
|
|
type Option func(m *Migrator)
|
|
|
|
func WithPreStepHook(fn func(filename string)) Option {
|
|
return func(m *Migrator) {
|
|
m.preStepHooks = append(m.preStepHooks, fn)
|
|
}
|
|
}
|