From 11582615a08c02fbeac46aef55c176e8aaef6c2c Mon Sep 17 00:00:00 2001 From: Kollin Date: Fri, 20 Dec 2013 17:05:16 +0800 Subject: [PATCH] fix worker --- core/trello/utils.go | 8 ++++---- worker/app.go | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/core/trello/utils.go b/core/trello/utils.go index 9a256ef..736a645 100644 --- a/core/trello/utils.go +++ b/core/trello/utils.go @@ -10,14 +10,14 @@ const ( ) type Trello struct { - key string - token string + Key string + Token string } func NewTrello(key, token string) (t *Trello) { t = new(Trello) - t.key = key - t.token = token + t.Key = key + t.Token = token return t } diff --git a/worker/app.go b/worker/app.go index 29cee4f..2486834 100644 --- a/worker/app.go +++ b/worker/app.go @@ -11,4 +11,7 @@ func main() { t := trello.NewTrello("222", "sss") fmt.Println(t) + for { + fmt.Println(t.Key) + } }