shiori/main.go
Felipe Martin cc7c75116d
refactor: migrate bookmark static pages to new http server (#775)
* migrate bookmark content route to new http server

* new archive page

* remove unused go generate comment

* database mock

* utils cleanup

* unused var

* domains refactor and tests

* fixed secret key type

* redirect to login on ui errors

* fixed archive folder with storage domain

* webroot documentation

* some bookmark route tests

* fixed error in bookmark domain for non existant bookmarks

* centralice errors

* add coverage data to unittests

* added tests, refactor storage to use afero

* removed mock to avoid increasing complexity

* using deps to copy files around

* remove config usage (to deps)

* remove handler-ui file
2023-12-28 18:18:32 +01:00

36 lines
606 B
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)
}
}