Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrParse = fmt.Errorf("no match")
)
View Source
var Regex = regexp.MustCompile(`^([0-9]+)_(.*)\.(` + string(Down) + `|` + string(Up) + `)\.(.*)$`)
Regex matches the following pattern:
123_name.up.ext 123_name.down.ext
Functions ¶
This section is empty.
Types ¶
type Migration ¶
type Migration struct { Bytes io.ReadCloser Name string RawName string Version uint32 Direction Direction }
func NewMigration ¶
func NewMigration(migrationBytes io.ReadCloser, fileName string) (*Migration, error)
Click to show internal directories.
Click to hide internal directories.