Fixing build issues
This commit is contained in:
parent
6352f60098
commit
df35fccb97
3
main.go
3
main.go
|
@ -148,11 +148,14 @@ var dj = mumbledj{
|
||||||
cache: NewSongCache(),
|
cache: NewSongCache(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var services []Service
|
||||||
|
|
||||||
// main primarily performs startup tasks. Grabs and parses commandline
|
// main primarily performs startup tasks. Grabs and parses commandline
|
||||||
// args, sets up the gumble client and its listeners, and then connects to the server.
|
// args, sets up the gumble client and its listeners, and then connects to the server.
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
PerformStartupChecks()
|
PerformStartupChecks()
|
||||||
|
services = []Service{Youtube{}}
|
||||||
|
|
||||||
if currentUser, err := user.Current(); err == nil {
|
if currentUser, err := user.Current(); err == nil {
|
||||||
dj.homeDir = currentUser.HomeDir
|
dj.homeDir = currentUser.HomeDir
|
||||||
|
|
|
@ -32,10 +32,6 @@ import (
|
||||||
type YouTube struct {
|
type YouTube struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
var services = []Service{
|
|
||||||
Youtube{},
|
|
||||||
}
|
|
||||||
|
|
||||||
// Name of the service
|
// Name of the service
|
||||||
func (y Youtube) ServiceName() string {
|
func (y Youtube) ServiceName() string {
|
||||||
return "Youtube"
|
return "Youtube"
|
||||||
|
|
Reference in a new issue