Versions in this module Expand all Collapse all v1 v1.2.0 Oct 10, 2014 Changes in this version + func FilenameRegex(filenameExtension string) *regexp.Regexp + func LineColumnFromOffset(data []byte, offset int) (line, column int) + func LinesBeforeAndAfter(data []byte, line, before, after int, lineNumbers bool) []byte + type File struct + Content []byte + Direction direction.Direction + FileName string + Name string + Path string + Version uint64 + func (f *File) ReadContent() error + type Files []File + type MigrationFile struct + DownFile *File + UpFile *File + Version uint64 + type MigrationFiles []MigrationFile + func ReadMigrationFiles(path string, filenameRegex *regexp.Regexp) (files MigrationFiles, err error) + func (mf *MigrationFiles) From(version uint64, relativeN int) (Files, error) + func (mf *MigrationFiles) ToFirstFrom(version uint64) (Files, error) + func (mf *MigrationFiles) ToLastFrom(version uint64) (Files, error) + func (mf MigrationFiles) Len() int + func (mf MigrationFiles) Less(i, j int) bool + func (mf MigrationFiles) Swap(i, j int)