diff --git a/common_test.go b/common_test.go index 2d283b1a..56cb62e7 100644 --- a/common_test.go +++ b/common_test.go @@ -8,17 +8,18 @@ import ( "compress/bzip2" "encoding/binary" "fmt" + "io" + "os" + "path/filepath" + "strings" + "testing" + "github.com/conformal/btcdb" _ "github.com/conformal/btcdb/ldb" _ "github.com/conformal/btcdb/memdb" "github.com/conformal/btcnet" "github.com/conformal/btcutil" "github.com/conformal/btcwire" - "io" - "os" - "path/filepath" - "strings" - "testing" ) var ( diff --git a/db.go b/db.go index c5b392de..adfbb405 100644 --- a/db.go +++ b/db.go @@ -6,6 +6,7 @@ package btcdb import ( "errors" + "github.com/conformal/btcutil" "github.com/conformal/btcwire" ) diff --git a/db_test.go b/db_test.go index 6a8b088f..9ec93cb6 100644 --- a/db_test.go +++ b/db_test.go @@ -6,8 +6,9 @@ package btcdb_test import ( "fmt" - "github.com/conformal/btcdb" "testing" + + "github.com/conformal/btcdb" ) var ( diff --git a/interface_test.go b/interface_test.go index be0e28f4..21500a67 100644 --- a/interface_test.go +++ b/interface_test.go @@ -5,12 +5,13 @@ package btcdb_test import ( + "reflect" + "testing" + "github.com/conformal/btcdb" "github.com/conformal/btcutil" "github.com/conformal/btcwire" "github.com/davecgh/go-spew/spew" - "reflect" - "testing" ) // testContext is used to store context information about a running test which diff --git a/ldb/block.go b/ldb/block.go index 729ca943..3d12360a 100644 --- a/ldb/block.go +++ b/ldb/block.go @@ -8,6 +8,7 @@ import ( "bytes" "encoding/binary" "fmt" + "github.com/conformal/btcdb" "github.com/conformal/btcutil" "github.com/conformal/btcwire" diff --git a/ldb/boundary_test.go b/ldb/boundary_test.go index 5a722441..af49a684 100644 --- a/ldb/boundary_test.go +++ b/ldb/boundary_test.go @@ -5,10 +5,11 @@ package ldb_test import ( - "github.com/conformal/btcdb" - "github.com/conformal/btcwire" "os" "testing" + + "github.com/conformal/btcdb" + "github.com/conformal/btcwire" ) // we need to test for empty databas and make certain it returns proper value diff --git a/ldb/dbtest/dbtst.go b/ldb/dbtest/dbtst.go index 11a34c0b..41e83cad 100644 --- a/ldb/dbtest/dbtst.go +++ b/ldb/dbtest/dbtst.go @@ -3,6 +3,7 @@ package main import ( "fmt" + "github.com/conformal/goleveldb/leveldb" "github.com/conformal/goleveldb/leveldb/opt" ) diff --git a/ldb/dup_test.go b/ldb/dup_test.go index 802dc379..8b638dfd 100644 --- a/ldb/dup_test.go +++ b/ldb/dup_test.go @@ -6,12 +6,13 @@ package ldb_test import ( "fmt" - "github.com/conformal/btcdb" - "github.com/conformal/btcutil" - "github.com/conformal/btcwire" "os" "path/filepath" "testing" + + "github.com/conformal/btcdb" + "github.com/conformal/btcutil" + "github.com/conformal/btcwire" ) func Test_dupTx(t *testing.T) { diff --git a/ldb/insertremove_test.go b/ldb/insertremove_test.go index b09efc7b..27fdc486 100644 --- a/ldb/insertremove_test.go +++ b/ldb/insertremove_test.go @@ -6,13 +6,14 @@ package ldb_test import ( "fmt" + "os" + "path/filepath" + "testing" + "github.com/conformal/btcdb" _ "github.com/conformal/btcdb/ldb" "github.com/conformal/btcutil" "github.com/conformal/btcwire" - "os" - "path/filepath" - "testing" ) var tstBlocks []*btcutil.Block diff --git a/ldb/internal_test.go b/ldb/internal_test.go index 12c61fb2..359a0e79 100644 --- a/ldb/internal_test.go +++ b/ldb/internal_test.go @@ -6,6 +6,7 @@ package ldb import ( "fmt" + "github.com/conformal/btcdb" "github.com/conformal/btcwire" ) diff --git a/ldb/leveldb.go b/ldb/leveldb.go index 34671dcd..95f42bfb 100644 --- a/ldb/leveldb.go +++ b/ldb/leveldb.go @@ -7,6 +7,9 @@ package ldb import ( "encoding/binary" "fmt" + "os" + "sync" + "github.com/conformal/btcdb" "github.com/conformal/btclog" "github.com/conformal/btcutil" @@ -14,8 +17,6 @@ import ( "github.com/conformal/goleveldb/leveldb" "github.com/conformal/goleveldb/leveldb/cache" "github.com/conformal/goleveldb/leveldb/opt" - "os" - "sync" ) const ( diff --git a/ldb/operational_test.go b/ldb/operational_test.go index 2e8f82db..cd8d6395 100644 --- a/ldb/operational_test.go +++ b/ldb/operational_test.go @@ -8,15 +8,16 @@ import ( "compress/bzip2" "encoding/binary" "fmt" - "github.com/conformal/btcdb" - "github.com/conformal/btcnet" - "github.com/conformal/btcutil" - "github.com/conformal/btcwire" "io" "os" "path/filepath" "strings" "testing" + + "github.com/conformal/btcdb" + "github.com/conformal/btcnet" + "github.com/conformal/btcutil" + "github.com/conformal/btcwire" ) var network = btcwire.MainNet diff --git a/ldb/tx.go b/ldb/tx.go index 7e4fad81..1e2e7ce0 100644 --- a/ldb/tx.go +++ b/ldb/tx.go @@ -8,6 +8,7 @@ import ( "bytes" "encoding/binary" "fmt" + "github.com/conformal/btcdb" "github.com/conformal/btcwire" "github.com/conformal/goleveldb/leveldb" diff --git a/log.go b/log.go index 8aa02ec4..829dcaf1 100644 --- a/log.go +++ b/log.go @@ -6,8 +6,9 @@ package btcdb import ( "errors" - "github.com/conformal/btclog" "io" + + "github.com/conformal/btclog" ) // log is a logger that is initialized with no output filters. This diff --git a/memdb/driver.go b/memdb/driver.go index 581c0feb..49b5904a 100644 --- a/memdb/driver.go +++ b/memdb/driver.go @@ -6,6 +6,7 @@ package memdb import ( "fmt" + "github.com/conformal/btcdb" "github.com/conformal/btclog" ) diff --git a/memdb/memdb.go b/memdb/memdb.go index 16793b91..254ecadb 100644 --- a/memdb/memdb.go +++ b/memdb/memdb.go @@ -7,11 +7,12 @@ package memdb import ( "errors" "fmt" + "math" + "sync" + "github.com/conformal/btcdb" "github.com/conformal/btcutil" "github.com/conformal/btcwire" - "math" - "sync" ) // Errors that the various database functions may return. diff --git a/memdb/memdb_test.go b/memdb/memdb_test.go index f5684483..8e33de47 100644 --- a/memdb/memdb_test.go +++ b/memdb/memdb_test.go @@ -5,13 +5,14 @@ package memdb_test import ( + "reflect" + "testing" + "github.com/conformal/btcdb" "github.com/conformal/btcdb/memdb" "github.com/conformal/btcnet" "github.com/conformal/btcutil" "github.com/conformal/btcwire" - "reflect" - "testing" ) // TestClosed ensure calling the interface functions on a closed database