mirror of
https://github.com/hanzoai/migrate.git
synced 2026-09-30 22:55:10 +00:00
go fix applied the modernizers. One rewrite it got wrong is corrected here: a reverse loop over runes became a range over slices.Backward that bound the index and the value to the SAME name, which does not compile and would have compared a rune to an index if it had. The value gets its own name. Co-authored-by: Hanzo Dev <[email protected]>
13 lines
274 B
Go
13 lines
274 B
Go
package migrate
|
|
|
|
// Logger is an interface so you can pass in your own
|
|
// logging implementation.
|
|
type Logger interface {
|
|
|
|
// Printf is like fmt.Printf
|
|
Printf(format string, v ...any)
|
|
|
|
// Verbose should return true when verbose logging output is wanted
|
|
Verbose() bool
|
|
}
|