diff --git a/empty_test.go b/empty_test.go index c8928f0..344dc83 100644 --- a/empty_test.go +++ b/empty_test.go @@ -1,9 +1,10 @@ package goref_test import ( + "testing" + "github.com/korfuri/goref" "github.com/stretchr/testify/assert" - "testing" ) func TestCanImportEmptyPackage(t *testing.T) { diff --git a/loadpath_test.go b/loadpath_test.go index 32c280f..c210c98 100644 --- a/loadpath_test.go +++ b/loadpath_test.go @@ -1,9 +1,10 @@ package goref import ( - "github.com/stretchr/testify/assert" "go/ast" "testing" + + "github.com/stretchr/testify/assert" ) func TestCleanImportSpec(t *testing.T) { diff --git a/multiple_mains_test.go b/multiple_mains_test.go index 2004ed6..31a1ca9 100644 --- a/multiple_mains_test.go +++ b/multiple_mains_test.go @@ -1,9 +1,10 @@ package goref_test import ( + "testing" + "github.com/korfuri/goref" "github.com/stretchr/testify/assert" - "testing" ) func TestMultipleMains(t *testing.T) { diff --git a/package.go b/package.go index ff84f7c..6d8373a 100644 --- a/package.go +++ b/package.go @@ -3,6 +3,7 @@ package goref import ( "go/token" "go/types" + "golang.org/x/tools/go/loader" ) diff --git a/packagegraph.go b/packagegraph.go index 06cd25d..7801ee9 100644 --- a/packagegraph.go +++ b/packagegraph.go @@ -1,12 +1,13 @@ package goref import ( - log "github.com/sirupsen/logrus" "go/ast" "go/types" - "golang.org/x/tools/go/loader" "path" "strings" + + log "github.com/sirupsen/logrus" + "golang.org/x/tools/go/loader" ) // PackageGraph represents a collection of Go packages and their diff --git a/reftype.go b/reftype.go index 979fb9a..a978dc4 100644 --- a/reftype.go +++ b/reftype.go @@ -2,6 +2,7 @@ package goref import ( "go/ast" + "golang.org/x/tools/go/loader" ) diff --git a/simple_test.go b/simple_test.go index e2b9339..5e09088 100644 --- a/simple_test.go +++ b/simple_test.go @@ -1,9 +1,10 @@ package goref_test import ( + "testing" + "github.com/korfuri/goref" "github.com/stretchr/testify/assert" - "testing" ) func TestSimplePackage(t *testing.T) { diff --git a/vendored_test.go b/vendored_test.go index bfc457c..e426b05 100644 --- a/vendored_test.go +++ b/vendored_test.go @@ -1,9 +1,10 @@ package goref_test import ( + "testing" + "github.com/korfuri/goref" "github.com/stretchr/testify/assert" - "testing" ) func TestVendoredPackage(t *testing.T) {