From f8d096a020e48345d28b7efdb7e8851af50c0951 Mon Sep 17 00:00:00 2001 From: Quentin Neyrat Date: Tue, 27 Mar 2018 16:36:19 +0200 Subject: [PATCH] improve code --- coach/emails.go | 3 ++- coach/global.go | 2 +- google/api.go | 2 +- main.go | 6 +++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/coach/emails.go b/coach/emails.go index 22376c7..4a2a37a 100644 --- a/coach/emails.go +++ b/coach/emails.go @@ -6,10 +6,11 @@ import ( "strings" "time" - "../config" "github.com/mattbaird/gochimp" log "github.com/sirupsen/logrus" "google.golang.org/api/sheets/v4" + + "github.com/eleven-labs/coach-bot/config" ) // PlanningEntry defines a planning for a coach. diff --git a/coach/global.go b/coach/global.go index 39e66a8..b65d937 100644 --- a/coach/global.go +++ b/coach/global.go @@ -4,7 +4,7 @@ import ( "strconv" "time" - "../config" + "github.com/eleven-labs/coach-bot/config" ) var ( diff --git a/google/api.go b/google/api.go index df840bb..cefd45f 100644 --- a/google/api.go +++ b/google/api.go @@ -1,6 +1,7 @@ package google import ( + "context" "encoding/json" "fmt" "io/ioutil" @@ -11,7 +12,6 @@ import ( "path/filepath" log "github.com/sirupsen/logrus" - "golang.org/x/net/context" "golang.org/x/oauth2" "golang.org/x/oauth2/google" "google.golang.org/api/sheets/v4" diff --git a/main.go b/main.go index 01c0d72..89f0f2d 100644 --- a/main.go +++ b/main.go @@ -1,13 +1,13 @@ package main import ( - "./coach" "github.com/eko/slackbot" "github.com/robfig/cron" log "github.com/sirupsen/logrus" - "./config" - "./google" + "github.com/eleven-labs/coach-bot/coach" + "github.com/eleven-labs/coach-bot/config" + "github.com/eleven-labs/coach-bot/google" ) func main() {