From 0d113d30a19b962b51b53a3448dd0711998b3696 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 31 Mar 2022 18:05:47 +0400 Subject: [PATCH] Replace Sprintf with way more performant simple concatenation. --- internal/radio/icecast.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index bbf0c01..99ec5c5 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -26,7 +26,7 @@ type IcecastStatusDTO struct { } 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 {