From 43f412e722d11d05cedcd2b2abc02d3c47a559fd Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Wed, 12 Aug 2015 19:52:38 +0100 Subject: [PATCH] Fixing build errors --- test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test.go b/test.go index 8b41a8a..de8813e 100644 --- a/test.go +++ b/test.go @@ -6,30 +6,30 @@ import ( "time" ) -type Test struct { +type TestSettings struct { password string ip string port string } -var test Test +var test TestSettings func Test(password, ip, port string) { - test = Test{ + test = TestSettings{ password: password, ip: ip, port: port, } } -func (t Test) createClient(uname) *gumble.Client { +func (t TestSettings) createClient(uname string) *gumble.Client { return gumble.NewClient(&gumble.Config{ Username: uname, Password: t.password, Address: t.ip + ":" + t.port}) } -func (t Test) testYoutubeSong() { +func (t TestSettings) testYoutubeSong() { dummyClient := t.createClient("dummy") dummyClient.Connect() dummyUser := dj.client.Users.Find("dummy")