1
0

Reorganised Handlers struct fields.

This commit is contained in:
Alexander Andreev 2023-09-14 17:58:35 +04:00
parent eccf0ff4e9
commit a6f92b56da
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -12,18 +12,18 @@ import (
) )
type Handlers struct { type Handlers struct {
icecastUrl string
icecastPlaylistPath string
songListLen int songListLen int
filelistPath string filelistPath string
icecastUrl string
icecastPlaylistPath string
} }
func NewHandlers(icecastUrl, icecastPlaylistPath, filelistPath string, songListLen int) *Handlers { func NewHandlers(icecastUrl, icecastPlaylistPath, filelistPath string, songListLen int) *Handlers {
return &Handlers{ return &Handlers{
icecastUrl: icecastUrl,
icecastPlaylistPath: icecastPlaylistPath,
songListLen: songListLen, songListLen: songListLen,
filelistPath: filelistPath} filelistPath: filelistPath,
icecastUrl: icecastUrl,
icecastPlaylistPath: icecastPlaylistPath}
} }
func (h *Handlers) Index(w http.ResponseWriter, r *http.Request) { func (h *Handlers) Index(w http.ResponseWriter, r *http.Request) {