mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-11 20:12:54 +02:00
20 lines
353 B
Go
20 lines
353 B
Go
package consts
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
"unicode"
|
|
|
|
"github.com/navidrome/navidrome/resources"
|
|
)
|
|
|
|
func loadBanner() string {
|
|
data, _ := resources.Asset("banner.txt")
|
|
return strings.TrimRightFunc(string(data), unicode.IsSpace)
|
|
}
|
|
|
|
func Banner() string {
|
|
version := "Version: " + Version()
|
|
return fmt.Sprintf("%s\n%52s\n", loadBanner(), version)
|
|
}
|