mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
19 lines
350 B
Go
19 lines
350 B
Go
package resources
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
"unicode"
|
|
|
|
"github.com/navidrome/navidrome/consts"
|
|
)
|
|
|
|
func loadBanner() string {
|
|
data, _ := Asset("banner.txt")
|
|
return strings.TrimRightFunc(string(data), unicode.IsSpace)
|
|
}
|
|
|
|
func Banner() string {
|
|
version := "Version: " + consts.Version()
|
|
return fmt.Sprintf("%s\n%52s\n", loadBanner(), version)
|
|
}
|