mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 04:27:37 +03:00
18 lines
362 B
Go
18 lines
362 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/astaxie/beego"
|
|
_ "github.com/deluan/gosonic/conf"
|
|
_ "github.com/deluan/gosonic/tasks"
|
|
)
|
|
|
|
func main() {
|
|
fmt.Printf("\nGoSonic v%s (%s mode)\n\n", "0.1", beego.BConfig.RunMode)
|
|
if beego.BConfig.RunMode == "prod" {
|
|
beego.SetLevel(beego.LevelInformational)
|
|
}
|
|
//beego.BConfig.Log.FileLineNum = false
|
|
beego.Run()
|
|
}
|