mirror of
https://github.com/go-shiori/shiori.git
synced 2025-01-14 11:58:24 +08:00
37 lines
648 B
Go
37 lines
648 B
Go
//go:generate go run assets-generator.go
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/go-shiori/shiori/internal/cmd"
|
|
"github.com/go-shiori/shiori/internal/model"
|
|
"github.com/sirupsen/logrus"
|
|
|
|
// Database driver
|
|
_ "github.com/go-sql-driver/mysql"
|
|
_ "github.com/lib/pq"
|
|
_ "modernc.org/sqlite"
|
|
|
|
// Add this to prevent it removed by go mod tidy
|
|
_ "github.com/shurcooL/vfsgen"
|
|
)
|
|
|
|
var (
|
|
version = "dev"
|
|
commit = "none"
|
|
date = "unknown"
|
|
)
|
|
|
|
func init() {
|
|
// Set globally
|
|
model.BuildVersion = version
|
|
model.BuildCommit = commit
|
|
model.BuildDate = date
|
|
}
|
|
|
|
func main() {
|
|
err := cmd.ShioriCmd().Execute()
|
|
if err != nil {
|
|
logrus.Fatalln(err)
|
|
}
|
|
}
|