From df35fccb97f46b17d09dcf19316735199d8ad453 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Mon, 27 Jul 2015 22:38:21 +0100 Subject: [PATCH] Fixing build issues --- main.go | 3 +++ service_youtube.go | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index ab41f9a..ddf6404 100644 --- a/main.go +++ b/main.go @@ -148,11 +148,14 @@ var dj = mumbledj{ cache: NewSongCache(), } +var services []Service + // main primarily performs startup tasks. Grabs and parses commandline // args, sets up the gumble client and its listeners, and then connects to the server. func main() { PerformStartupChecks() + services = []Service{Youtube{}} if currentUser, err := user.Current(); err == nil { dj.homeDir = currentUser.HomeDir diff --git a/service_youtube.go b/service_youtube.go index 1420492..18f8f6d 100644 --- a/service_youtube.go +++ b/service_youtube.go @@ -32,10 +32,6 @@ import ( type YouTube struct { } -var services = []Service{ - Youtube{}, -} - // Name of the service func (y Youtube) ServiceName() string { return "Youtube"