mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-15 12:27:43 +08:00
21 lines
322 B
Go
21 lines
322 B
Go
package main
|
|
|
|
import (
|
|
"github.com/RadhiFadlillah/shiori/cmd"
|
|
db "github.com/RadhiFadlillah/shiori/database"
|
|
_ "github.com/mattn/go-sqlite3"
|
|
)
|
|
|
|
func main() {
|
|
sqliteDB, err := db.OpenSQLiteDatabase()
|
|
checkError(err)
|
|
|
|
cmd.DB = sqliteDB
|
|
cmd.Execute()
|
|
}
|
|
|
|
func checkError(err error) {
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
}
|