mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-13 02:37:18 +03:00
This is inline with other Subsonic compatible servers, like funkwhale, madsonic, ampache...
21 lines
407 B
Go
21 lines
407 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
|
|
"github.com/deluan/navidrome/consts"
|
|
"github.com/deluan/navidrome/static"
|
|
)
|
|
|
|
func getBanner() string {
|
|
data, _ := static.Asset("banner.txt")
|
|
return strings.TrimSuffix(string(data), "\n")
|
|
}
|
|
|
|
func ShowBanner() {
|
|
version := "Version: " + consts.Version()
|
|
padding := strings.Repeat(" ", 52-len(version))
|
|
fmt.Printf("%s%s%s\n\n", getBanner(), padding, version)
|
|
}
|