diff --git a/README.md b/README.md index ab5fd52..f51ec19 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ go get -u github.com/asdine/storm ## Import Storm ```go -import "github.com/asdine/storm" +import "github.com/asdine/storm/v3" ``` ## Open a database @@ -470,12 +470,12 @@ These can be used by importing the relevant package and use that codec to config ```go import ( - "github.com/asdine/storm" - "github.com/asdine/storm/codec/gob" - "github.com/asdine/storm/codec/json" - "github.com/asdine/storm/codec/sereal" - "github.com/asdine/storm/codec/protobuf" - "github.com/asdine/storm/codec/msgpack" + "github.com/asdine/storm/v3" + "github.com/asdine/storm/v3/codec/gob" + "github.com/asdine/storm/v3/codec/json" + "github.com/asdine/storm/v3/codec/sereal" + "github.com/asdine/storm/v3/codec/protobuf" + "github.com/asdine/storm/v3/codec/msgpack" ) var gobDb, _ = storm.Open("gob.db", storm.Codec(gob.Codec)) diff --git a/codec/example_test.go b/codec/example_test.go index 6f95738..6965289 100644 --- a/codec/example_test.go +++ b/codec/example_test.go @@ -3,12 +3,12 @@ package codec_test import ( "fmt" - "github.com/asdine/storm" - "github.com/asdine/storm/codec/gob" - "github.com/asdine/storm/codec/json" - "github.com/asdine/storm/codec/msgpack" - "github.com/asdine/storm/codec/protobuf" - "github.com/asdine/storm/codec/sereal" + "github.com/asdine/storm/v3" + "github.com/asdine/storm/v3/codec/gob" + "github.com/asdine/storm/v3/codec/json" + "github.com/asdine/storm/v3/codec/msgpack" + "github.com/asdine/storm/v3/codec/protobuf" + "github.com/asdine/storm/v3/codec/sereal" ) func Example() { diff --git a/codec/gob/gob_test.go b/codec/gob/gob_test.go index 376fd9d..0f21a27 100644 --- a/codec/gob/gob_test.go +++ b/codec/gob/gob_test.go @@ -3,7 +3,7 @@ package gob import ( "testing" - "github.com/asdine/storm/codec/internal" + "github.com/asdine/storm/v3/codec/internal" ) func TestGob(t *testing.T) { diff --git a/codec/internal/test_helpers.go b/codec/internal/test_helpers.go index e49161d..eda0382 100644 --- a/codec/internal/test_helpers.go +++ b/codec/internal/test_helpers.go @@ -5,7 +5,7 @@ import ( "reflect" "testing" - "github.com/asdine/storm/codec" + "github.com/asdine/storm/v3/codec" ) type testStruct struct { diff --git a/codec/json/json_test.go b/codec/json/json_test.go index c172849..01f60b8 100644 --- a/codec/json/json_test.go +++ b/codec/json/json_test.go @@ -3,7 +3,7 @@ package json import ( "testing" - "github.com/asdine/storm/codec/internal" + "github.com/asdine/storm/v3/codec/internal" ) func TestJSON(t *testing.T) { diff --git a/codec/msgpack/msgpack_test.go b/codec/msgpack/msgpack_test.go index e5eb91d..28e6d1b 100644 --- a/codec/msgpack/msgpack_test.go +++ b/codec/msgpack/msgpack_test.go @@ -3,7 +3,7 @@ package msgpack import ( "testing" - "github.com/asdine/storm/codec/internal" + "github.com/asdine/storm/v3/codec/internal" ) func TestMsgpack(t *testing.T) { diff --git a/codec/protobuf/protobuf.go b/codec/protobuf/protobuf.go index b725e56..b8ea093 100644 --- a/codec/protobuf/protobuf.go +++ b/codec/protobuf/protobuf.go @@ -4,7 +4,7 @@ package protobuf import ( "errors" - "github.com/asdine/storm/codec/json" + "github.com/asdine/storm/v3/codec/json" "github.com/golang/protobuf/proto" ) diff --git a/codec/protobuf/protobuf_test.go b/codec/protobuf/protobuf_test.go index 71b9a86..2201595 100644 --- a/codec/protobuf/protobuf_test.go +++ b/codec/protobuf/protobuf_test.go @@ -6,8 +6,8 @@ import ( "path/filepath" "testing" - "github.com/asdine/storm" - "github.com/asdine/storm/codec/internal" + "github.com/asdine/storm/v3" + "github.com/asdine/storm/v3/codec/internal" "github.com/stretchr/testify/require" ) diff --git a/codec/sereal/sereal_test.go b/codec/sereal/sereal_test.go index a9c57c2..fae2514 100644 --- a/codec/sereal/sereal_test.go +++ b/codec/sereal/sereal_test.go @@ -3,7 +3,7 @@ package sereal import ( "testing" - "github.com/asdine/storm/codec/internal" + "github.com/asdine/storm/v3/codec/internal" "github.com/stretchr/testify/require" ) diff --git a/examples_test.go b/examples_test.go index 04beae6..780f8fb 100644 --- a/examples_test.go +++ b/examples_test.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "github.com/asdine/storm" - "github.com/asdine/storm/codec/gob" + "github.com/asdine/storm/v3" + "github.com/asdine/storm/v3/codec/gob" bolt "go.etcd.io/bbolt" ) diff --git a/extract.go b/extract.go index a085730..f601050 100644 --- a/extract.go +++ b/extract.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - "github.com/asdine/storm/index" + "github.com/asdine/storm/v3/index" bolt "go.etcd.io/bbolt" ) diff --git a/finder.go b/finder.go index 81c101c..8162862 100644 --- a/finder.go +++ b/finder.go @@ -4,8 +4,8 @@ import ( "fmt" "reflect" - "github.com/asdine/storm/index" - "github.com/asdine/storm/q" + "github.com/asdine/storm/v3/index" + "github.com/asdine/storm/v3/q" bolt "go.etcd.io/bbolt" ) diff --git a/go.mod b/go.mod index 28d7efd..0f53c2c 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/asdine/storm +module github.com/asdine/storm/v3 require ( github.com/Sereal/Sereal v0.0.0-20190618215532-0b8ac451a863 @@ -10,3 +10,5 @@ require ( github.com/vmihailenco/msgpack v4.0.1+incompatible go.etcd.io/bbolt v1.3.0 ) + +go 1.13 diff --git a/index/list.go b/index/list.go index d5b69f8..27ce410 100644 --- a/index/list.go +++ b/index/list.go @@ -3,7 +3,7 @@ package index import ( "bytes" - "github.com/asdine/storm/internal" + "github.com/asdine/storm/v3/internal" bolt "go.etcd.io/bbolt" ) diff --git a/index/list_test.go b/index/list_test.go index a53bdb5..4940d83 100644 --- a/index/list_test.go +++ b/index/list_test.go @@ -8,9 +8,9 @@ import ( "path/filepath" "testing" - "github.com/asdine/storm" - "github.com/asdine/storm/codec/gob" - "github.com/asdine/storm/index" + "github.com/asdine/storm/v3" + "github.com/asdine/storm/v3/codec/gob" + "github.com/asdine/storm/v3/index" bolt "go.etcd.io/bbolt" "github.com/stretchr/testify/require" ) diff --git a/index/unique.go b/index/unique.go index 5c63086..ec5989d 100644 --- a/index/unique.go +++ b/index/unique.go @@ -3,7 +3,7 @@ package index import ( "bytes" - "github.com/asdine/storm/internal" + "github.com/asdine/storm/v3/internal" bolt "go.etcd.io/bbolt" ) diff --git a/index/unique_test.go b/index/unique_test.go index c440983..6c54f89 100644 --- a/index/unique_test.go +++ b/index/unique_test.go @@ -7,9 +7,9 @@ import ( "path/filepath" "testing" - "github.com/asdine/storm" - "github.com/asdine/storm/codec/gob" - "github.com/asdine/storm/index" + "github.com/asdine/storm/v3" + "github.com/asdine/storm/v3/codec/gob" + "github.com/asdine/storm/v3/index" bolt "go.etcd.io/bbolt" "github.com/stretchr/testify/require" ) diff --git a/kv_test.go b/kv_test.go index a633b1a..7543bd2 100644 --- a/kv_test.go +++ b/kv_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/asdine/storm/codec/gob" - "github.com/asdine/storm/codec/json" + "github.com/asdine/storm/v3/codec/gob" + "github.com/asdine/storm/v3/codec/json" bolt "go.etcd.io/bbolt" "github.com/stretchr/testify/require" ) diff --git a/node.go b/node.go index 8fe95db..75fbb88 100644 --- a/node.go +++ b/node.go @@ -1,7 +1,7 @@ package storm import ( - "github.com/asdine/storm/codec" + "github.com/asdine/storm/v3/codec" bolt "go.etcd.io/bbolt" ) diff --git a/node_test.go b/node_test.go index 4d7636f..945e996 100644 --- a/node_test.go +++ b/node_test.go @@ -3,8 +3,8 @@ package storm import ( "testing" - "github.com/asdine/storm/codec/gob" - "github.com/asdine/storm/codec/json" + "github.com/asdine/storm/v3/codec/gob" + "github.com/asdine/storm/v3/codec/json" bolt "go.etcd.io/bbolt" "github.com/stretchr/testify/require" ) diff --git a/options.go b/options.go index 4caea52..ff89984 100644 --- a/options.go +++ b/options.go @@ -3,8 +3,8 @@ package storm import ( "os" - "github.com/asdine/storm/codec" - "github.com/asdine/storm/index" + "github.com/asdine/storm/v3/codec" + "github.com/asdine/storm/v3/index" bolt "go.etcd.io/bbolt" ) diff --git a/q/examples_test.go b/q/examples_test.go index 3073b3f..c55d260 100644 --- a/q/examples_test.go +++ b/q/examples_test.go @@ -12,8 +12,8 @@ import ( "path/filepath" "strings" - "github.com/asdine/storm" - "github.com/asdine/storm/q" + "github.com/asdine/storm/v3" + "github.com/asdine/storm/v3/q" ) func ExampleRe() { diff --git a/query.go b/query.go index 6b749c9..5f57583 100644 --- a/query.go +++ b/query.go @@ -1,8 +1,8 @@ package storm import ( - "github.com/asdine/storm/internal" - "github.com/asdine/storm/q" + "github.com/asdine/storm/v3/internal" + "github.com/asdine/storm/v3/q" bolt "go.etcd.io/bbolt" ) diff --git a/query_test.go b/query_test.go index 7268683..88e3b8b 100644 --- a/query_test.go +++ b/query_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" - "github.com/asdine/storm/codec/json" - "github.com/asdine/storm/q" + "github.com/asdine/storm/v3/codec/json" + "github.com/asdine/storm/v3/q" "github.com/stretchr/testify/require" ) diff --git a/sink.go b/sink.go index f8fb652..117119e 100644 --- a/sink.go +++ b/sink.go @@ -4,8 +4,8 @@ import ( "reflect" "sort" "time" - "github.com/asdine/storm/index" - "github.com/asdine/storm/q" + "github.com/asdine/storm/v3/index" + "github.com/asdine/storm/v3/q" bolt "go.etcd.io/bbolt" ) diff --git a/store.go b/store.go index 91bff7e..f22651f 100644 --- a/store.go +++ b/store.go @@ -4,8 +4,8 @@ import ( "bytes" "reflect" - "github.com/asdine/storm/index" - "github.com/asdine/storm/q" + "github.com/asdine/storm/v3/index" + "github.com/asdine/storm/v3/q" bolt "go.etcd.io/bbolt" ) diff --git a/store_test.go b/store_test.go index 784f394..edd12af 100644 --- a/store_test.go +++ b/store_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/asdine/storm/codec/gob" - "github.com/asdine/storm/codec/json" - "github.com/asdine/storm/q" + "github.com/asdine/storm/v3/codec/gob" + "github.com/asdine/storm/v3/codec/json" + "github.com/asdine/storm/v3/q" "github.com/stretchr/testify/require" bolt "go.etcd.io/bbolt" ) diff --git a/storm.go b/storm.go index 78f5b23..88f16ea 100644 --- a/storm.go +++ b/storm.go @@ -5,8 +5,8 @@ import ( "encoding/binary" "time" - "github.com/asdine/storm/codec" - "github.com/asdine/storm/codec/json" + "github.com/asdine/storm/v3/codec" + "github.com/asdine/storm/v3/codec/json" bolt "go.etcd.io/bbolt" ) diff --git a/storm_test.go b/storm_test.go index ec1724b..fc7bee1 100644 --- a/storm_test.go +++ b/storm_test.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/asdine/storm/codec/json" + "github.com/asdine/storm/v3/codec/json" bolt "go.etcd.io/bbolt" "github.com/stretchr/testify/require" )