From c21095c724bfd7f268d452e99f75fee3135eb776 Mon Sep 17 00:00:00 2001 From: Rodrigo Brito Date: Thu, 15 Oct 2020 21:32:48 -0300 Subject: [PATCH] refactor(import): revert module name --- analyzer/analyzer.go | 4 ++-- analyzer/visitor.go | 2 +- go.mod | 2 +- handle/analyzer.go | 8 ++++---- lib/fetch.go | 3 +-- main.go | 4 ++-- model/node.go | 4 ++-- model/node_test.go | 2 +- 8 files changed, 14 insertions(+), 15 deletions(-) diff --git a/analyzer/analyzer.go b/analyzer/analyzer.go index c505c29..b8e9ac1 100644 --- a/analyzer/analyzer.go +++ b/analyzer/analyzer.go @@ -9,9 +9,9 @@ import ( "path/filepath" "strings" - log "github.com/sirupsen/logrus" + "github.com/rodrigo-brito/gocity/lib" - "gocity/lib" + log "github.com/sirupsen/logrus" ) type Analyzer interface { diff --git a/analyzer/visitor.go b/analyzer/visitor.go index dcaf08c..6ad621e 100644 --- a/analyzer/visitor.go +++ b/analyzer/visitor.go @@ -4,7 +4,7 @@ import ( "go/ast" "go/token" - "gocity/lib" + "github.com/rodrigo-brito/gocity/lib" ) type NodeInfo struct { diff --git a/go.mod b/go.mod index e71c70b..5760109 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gocity +module github.com/rodrigo-brito/gocity go 1.15 diff --git a/handle/analyzer.go b/handle/analyzer.go index 63d576d..9390ad8 100644 --- a/handle/analyzer.go +++ b/handle/analyzer.go @@ -8,10 +8,10 @@ import ( "net/http" "time" - "gocity/analyzer" - "gocity/handle/middlewares" - "gocity/lib" - "gocity/model" + "github.com/rodrigo-brito/gocity/analyzer" + "github.com/rodrigo-brito/gocity/handle/middlewares" + "github.com/rodrigo-brito/gocity/lib" + "github.com/rodrigo-brito/gocity/model" "github.com/go-chi/chi" "github.com/go-chi/chi/middleware" diff --git a/lib/fetch.go b/lib/fetch.go index 1353b6e..7530201 100644 --- a/lib/fetch.go +++ b/lib/fetch.go @@ -5,8 +5,7 @@ import ( "os" log "github.com/sirupsen/logrus" - - git "gopkg.in/src-d/go-git.v4" + "gopkg.in/src-d/go-git.v4" "gopkg.in/src-d/go-git.v4/plumbing" ) diff --git a/main.go b/main.go index 2e0f3a2..4d87863 100644 --- a/main.go +++ b/main.go @@ -4,8 +4,8 @@ import ( "fmt" "os" - "gocity/handle" - "gocity/lib" + "github.com/rodrigo-brito/gocity/handle" + "github.com/rodrigo-brito/gocity/lib" log "github.com/sirupsen/logrus" "github.com/urfave/cli" diff --git a/model/node.go b/model/node.go index cb9cf73..d1addc3 100644 --- a/model/node.go +++ b/model/node.go @@ -5,8 +5,8 @@ import ( "sort" "strings" - "gocity/analyzer" - "gocity/lib" + "github.com/rodrigo-brito/gocity/analyzer" + "github.com/rodrigo-brito/gocity/lib" ) type NodeType string diff --git a/model/node_test.go b/model/node_test.go index 0b784d9..78cb0fa 100644 --- a/model/node_test.go +++ b/model/node_test.go @@ -5,7 +5,7 @@ import ( "github.com/magiconair/properties/assert" - "gocity/analyzer" + "github.com/rodrigo-brito/gocity/analyzer" ) func TestNode_GenerateChildList(t *testing.T) {