Reorganised Handlers struct fields.
This commit is contained in:
parent
eccf0ff4e9
commit
a6f92b56da
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user