From a6f92b56dac7d1413db8573d85c110ffc3dad871 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 14 Sep 2023 17:58:35 +0400 Subject: [PATCH] Reorganised Handlers struct fields. --- internal/http/handlers.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 87c19d3..f821c6e 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -12,18 +12,18 @@ import ( ) type Handlers struct { - icecastUrl string - icecastPlaylistPath string songListLen int filelistPath string + icecastUrl string + icecastPlaylistPath string } func NewHandlers(icecastUrl, icecastPlaylistPath, filelistPath string, songListLen int) *Handlers { return &Handlers{ - icecastUrl: icecastUrl, - icecastPlaylistPath: icecastPlaylistPath, songListLen: songListLen, - filelistPath: filelistPath} + filelistPath: filelistPath, + icecastUrl: icecastUrl, + icecastPlaylistPath: icecastPlaylistPath} } func (h *Handlers) Index(w http.ResponseWriter, r *http.Request) {