1
0

Replace Sprintf with way more performant simple concatenation.

This commit is contained in:
Alexander Andreev 2022-03-31 18:05:47 +04:00
parent b077fa053c
commit 0d113d30a1
Signed by: Arav
GPG Key ID: 1327FE8A374CC86F

View File

@ -26,7 +26,7 @@ type IcecastStatusDTO struct {
} }
func (is *IcecastStatusDTO) Song() string { func (is *IcecastStatusDTO) Song() string {
return fmt.Sprintf("%s - %s", is.Icestats.Source.Artist, is.Icestats.Source.Title) return is.Icestats.Source.Artist + " - " + is.Icestats.Source.Title
} }
type IcecastStatus struct { type IcecastStatus struct {