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