From 4b8ab610d586eb13b401651d8f0423b4bc9f899a Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 17 Sep 2023 19:18:18 +0400 Subject: [PATCH] Added comments for separator* consts. --- internal/radio/icecast.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/internal/radio/icecast.go b/internal/radio/icecast.go index 30e2899..06311f6 100644 --- a/internal/radio/icecast.go +++ b/internal/radio/icecast.go @@ -20,8 +20,12 @@ const ( SongTimeFormat = "2006 15:04-0700" bufferSizePerLine = 512 - separatorOne = 26 - separatorTwo = 38 + 1 + // Positions of first and second "|" separator on playlist.log line. + // The third one may float if amount of listeners will be >= 10. + separatorOne = 26 + // +1 added to a second one just because it is used only at a start pos of + // a listeners' field, so there's no need to increment it every time. + separatorTwo = 38 + 1 ) var (