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