Documentation ¶ Index ¶ Variables func GetFilename(s string) int type Migration func (e *Migration) GetDb() *gorm.DB func (e *Migration) Migrate() func (e *Migration) SetDb(db *gorm.DB) func (e *Migration) SetVersion(k int, f func(db *gorm.DB, version string) error) Constants ¶ This section is empty. Variables ¶ View Source var Migrate = &Migration{ version: make(map[int]func(db *gorm.DB, version string) error), } Functions ¶ func GetFilename ¶ func GetFilename(s string) int Types ¶ type Migration ¶ type Migration struct { // contains filtered or unexported fields } func (*Migration) GetDb ¶ func (e *Migration) GetDb() *gorm.DB func (*Migration) Migrate ¶ func (e *Migration) Migrate() func (*Migration) SetDb ¶ func (e *Migration) SetDb(db *gorm.DB) func (*Migration) SetVersion ¶ func (e *Migration) SetVersion(k int, f func(db *gorm.DB, version string) error) Source Files ¶ View all Source files init.go Click to show internal directories. Click to hide internal directories.