Removing Globals
Globals are no longer needed instead I am connecting each part with ( what were previously ) globals. Also Renaming SetRenderer to ConnectRenderer which describes the name more precisely
This commit is contained in:
@@ -2,9 +2,10 @@ package ui
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/fhs/gompd/mpd"
|
||||
"strconv"
|
||||
|
||||
"github.com/fhs/gompd/mpd"
|
||||
|
||||
"github.com/aditya-K2/gomp/utils"
|
||||
|
||||
"github.com/aditya-K2/tview"
|
||||
@@ -21,7 +22,7 @@ func SetConnection(c *mpd.Client) {
|
||||
CONN = c
|
||||
}
|
||||
|
||||
func SetRenderer(r interface{ Send(string) }) {
|
||||
func ConnectRenderer(r interface{ Send(string) }) {
|
||||
RENDERER = r
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user