Add banner.txt as a static file

This commit is contained in:
Deluan
2020-01-24 23:42:47 -05:00
parent 1a0563db2d
commit 5b84188f58
4 changed files with 45 additions and 25 deletions
+9 -1
View File
@@ -1,15 +1,23 @@
package main
import (
"fmt"
"github.com/deluan/navidrome/conf"
"github.com/deluan/navidrome/server"
"github.com/deluan/navidrome/static"
)
func ShowBanner() {
banner, _ := static.Asset("banner.txt")
fmt.Printf(string(banner), server.Version)
}
func main() {
conf.Load()
if !conf.Server.DevDisableBanner {
server.ShowBanner()
ShowBanner()
}
a := CreateServer(conf.Server.MusicFolder)