diff --git a/controllers/build-tool-detector.go b/controllers/build-tool-detector.go index e2d3db1..b205147 100644 --- a/controllers/build-tool-detector.go +++ b/controllers/build-tool-detector.go @@ -12,6 +12,7 @@ import ( "encoding/json" "errors" "fmt" + "github.com/goadesign/goa" "github.com/tinakurian/build-tool-detector/app" "github.com/tinakurian/build-tool-detector/config" diff --git a/controllers/build-tool-detector_test.go b/controllers/build-tool-detector_test.go index 8d2ea72..e5978dc 100644 --- a/controllers/build-tool-detector_test.go +++ b/controllers/build-tool-detector_test.go @@ -8,6 +8,8 @@ go-github api calls. package controllers_test import ( + "io/ioutil" + "github.com/goadesign/goa" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -16,7 +18,6 @@ import ( "github.com/tinakurian/build-tool-detector/config" controllers "github.com/tinakurian/build-tool-detector/controllers" "gopkg.in/h2non/gock.v1" - "io/ioutil" ) var _ = Describe("BuildToolDetector", func() { diff --git a/domain/repository/github/github_service.go b/domain/repository/github/github_service.go index 8053d98..b270342 100644 --- a/domain/repository/github/github_service.go +++ b/domain/repository/github/github_service.go @@ -12,10 +12,11 @@ package github import ( "context" "errors" + "net/http" + "github.com/google/go-github/github" "github.com/tinakurian/build-tool-detector/config" "github.com/tinakurian/build-tool-detector/domain/types" - "net/http" ) const ( diff --git a/domain/repository/repository_service.go b/domain/repository/repository_service.go index 00af49c..046b340 100644 --- a/domain/repository/repository_service.go +++ b/domain/repository/repository_service.go @@ -13,11 +13,12 @@ package repository import ( "errors" + "net/url" + "strings" + "github.com/tinakurian/build-tool-detector/config" "github.com/tinakurian/build-tool-detector/domain/repository/github" "github.com/tinakurian/build-tool-detector/domain/types" - "net/url" - "strings" ) var ( diff --git a/tool/build-tool-detector-cli/main.go b/tool/build-tool-detector-cli/main.go index c20a48a..79ce997 100644 --- a/tool/build-tool-detector-cli/main.go +++ b/tool/build-tool-detector-cli/main.go @@ -2,13 +2,14 @@ package main import ( "fmt" + "net/http" + "os" + "time" + goaclient "github.com/goadesign/goa/client" "github.com/spf13/cobra" "github.com/tinakurian/build-tool-detector/client" "github.com/tinakurian/build-tool-detector/tool/cli" - "net/http" - "os" - "time" ) func main() {