shiori/main.go

23 lines
357 B
Go
Raw Normal View History

2018-02-23 17:51:06 +08:00
//go:generate fileb0x filebox.json
2018-01-26 18:40:01 +08:00
package main
import (
"github.com/RadhiFadlillah/shiori/cmd"
db "github.com/RadhiFadlillah/shiori/database"
_ "github.com/mattn/go-sqlite3"
)
2018-01-26 18:40:01 +08:00
func main() {
sqliteDB, err := db.OpenSQLiteDatabase()
2018-01-26 21:33:26 +08:00
checkError(err)
cmd.DB = sqliteDB
cmd.Execute()
2018-01-26 21:33:26 +08:00
}
func checkError(err error) {
if err != nil {
panic(err)
}
2018-01-26 18:40:01 +08:00
}