package database import ( _ "modernc.org/sqlite" "xorm.io/xorm" ) var engine *xorm.Engine func init() { var err error file := "./wol.db" engine, err = xorm.NewEngine("sqlite3", file) if err != nil { panic(err) } }