Documentation ¶ Index ¶ Variables func CloseDB() error func InitDB() func Migrate() Constants ¶ This section is empty. Variables ¶ View Source var Db *sql.DB Functions ¶ func CloseDB ¶ func CloseDB() error func InitDB ¶ func InitDB() func Migrate ¶ func Migrate() Migrate function we apply migrations just like we did with command line but with this function your app will always apply the latest migrations before start. Types ¶ This section is empty. Source Files ¶ View all Source files mysql.go Click to show internal directories. Click to hide internal directories.