diff --git a/cache/cache.go b/cache/cache.go index b979113..ecefa79 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -88,7 +88,7 @@ import ( "errors" "github.com/madflojo/hord" - "github.com/madflojo/hord/drivers/cache/lookaside" + "github.com/madflojo/hord/cache/lookaside" ) // CacheType is the type of cache to use. diff --git a/drivers/cassandra/cassandra.go b/drivers/cassandra/cassandra.go index 32892a1..fda6847 100644 --- a/drivers/cassandra/cassandra.go +++ b/drivers/cassandra/cassandra.go @@ -58,6 +58,7 @@ package cassandra import ( "fmt" + "github.com/gocql/gocql" "github.com/madflojo/hord" ) diff --git a/drivers/cassandra/cassandra_test.go b/drivers/cassandra/cassandra_test.go index af9ab52..6020eae 100644 --- a/drivers/cassandra/cassandra_test.go +++ b/drivers/cassandra/cassandra_test.go @@ -2,9 +2,10 @@ package cassandra import ( "fmt" - "github.com/madflojo/hord" "testing" "time" + + "github.com/madflojo/hord" ) func TestErrNoDial(t *testing.T) { diff --git a/drivers/hashmap/byte_slice.go b/drivers/hashmap/byte_slice.go index ed66814..66d3e17 100644 --- a/drivers/hashmap/byte_slice.go +++ b/drivers/hashmap/byte_slice.go @@ -2,8 +2,6 @@ package hashmap import ( "fmt" - - "gopkg.in/yaml.v3" ) // ByteSlice is a struct that is used to implement custom YAML Marshal/Unmarshal because diff --git a/drivers/hashmap/byte_slice_test.go b/drivers/hashmap/byte_slice_test.go index faf67e8..6f8ee0e 100644 --- a/drivers/hashmap/byte_slice_test.go +++ b/drivers/hashmap/byte_slice_test.go @@ -2,8 +2,6 @@ package hashmap import ( "testing" - - "gopkg.in/yaml.v3" ) func TestByteSliceMarshalYAML(t *testing.T) { diff --git a/drivers/hashmap/hashmap.go b/drivers/hashmap/hashmap.go index 2447869..0fe930c 100644 --- a/drivers/hashmap/hashmap.go +++ b/drivers/hashmap/hashmap.go @@ -66,7 +66,6 @@ import ( "sync" "github.com/madflojo/hord" - "gopkg.in/yaml.v3" ) // Config represents the configuration for the hashmap database. diff --git a/drivers/hashmap/hashmap_test.go b/drivers/hashmap/hashmap_test.go index e259bd8..e04b028 100644 --- a/drivers/hashmap/hashmap_test.go +++ b/drivers/hashmap/hashmap_test.go @@ -4,8 +4,6 @@ import ( "encoding/json" "os" "testing" - - "gopkg.in/yaml.v3" ) var fileTypeCases = []struct { diff --git a/drivers/mock/mock_test.go b/drivers/mock/mock_test.go index ef40efb..4046d83 100644 --- a/drivers/mock/mock_test.go +++ b/drivers/mock/mock_test.go @@ -2,8 +2,9 @@ package mock import ( "fmt" - "github.com/madflojo/hord" "testing" + + "github.com/madflojo/hord" ) func TestDefaults(t *testing.T) { diff --git a/drivers/nats/common_test.go b/drivers/nats/common_test.go index 0772ec1..0ecbac6 100644 --- a/drivers/nats/common_test.go +++ b/drivers/nats/common_test.go @@ -8,7 +8,6 @@ import ( "time" "github.com/madflojo/hord" - "github.com/nats-io/nats.go" ) func TestInterfaceHappyPath(t *testing.T) { diff --git a/drivers/nats/nats.go b/drivers/nats/nats.go index 66d7759..747a853 100644 --- a/drivers/nats/nats.go +++ b/drivers/nats/nats.go @@ -65,7 +65,6 @@ import ( "sync" "github.com/madflojo/hord" - "github.com/nats-io/nats.go" ) // Config represents the configuration for the NATS database connection. diff --git a/drivers/nats/nats_test.go b/drivers/nats/nats_test.go index 381d0e1..14f416a 100644 --- a/drivers/nats/nats_test.go +++ b/drivers/nats/nats_test.go @@ -4,8 +4,6 @@ import ( "crypto/tls" "testing" "time" - - "github.com/nats-io/nats.go" ) type TestCase struct { diff --git a/drivers/redis/redis.go b/drivers/redis/redis.go index 807ea8c..93c2f7d 100644 --- a/drivers/redis/redis.go +++ b/drivers/redis/redis.go @@ -59,10 +59,11 @@ package redis import ( "crypto/tls" "fmt" + "time" + "github.com/FZambia/sentinel" "github.com/gomodule/redigo/redis" "github.com/madflojo/hord" - "time" ) // Config provides configuration options for connecting to and controlling the behavior of Redis.