Skip to content

Commit

Permalink
use semantic import versioning as required by go
Browse files Browse the repository at this point in the history
  • Loading branch information
chappjc committed Sep 30, 2019
1 parent a53b1e4 commit e6733e1
Show file tree
Hide file tree
Showing 29 changed files with 60 additions and 58 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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))
Expand Down
12 changes: 6 additions & 6 deletions codec/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion codec/gob/gob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion codec/internal/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"reflect"
"testing"

"github.com/asdine/storm/codec"
"github.com/asdine/storm/v3/codec"
)

type testStruct struct {
Expand Down
2 changes: 1 addition & 1 deletion codec/json/json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion codec/msgpack/msgpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion codec/protobuf/protobuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions codec/protobuf/protobuf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion codec/sereal/sereal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strconv"
"strings"

"github.com/asdine/storm/index"
"github.com/asdine/storm/v3/index"
bolt "go.etcd.io/bbolt"
)

Expand Down
4 changes: 2 additions & 2 deletions finder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,3 +10,5 @@ require (
github.com/vmihailenco/msgpack v4.0.1+incompatible
go.etcd.io/bbolt v1.3.0
)

go 1.13
2 changes: 1 addition & 1 deletion index/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package index
import (
"bytes"

"github.com/asdine/storm/internal"
"github.com/asdine/storm/v3/internal"
bolt "go.etcd.io/bbolt"
)

Expand Down
6 changes: 3 additions & 3 deletions index/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion index/unique.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package index
import (
"bytes"

"github.com/asdine/storm/internal"
"github.com/asdine/storm/v3/internal"
bolt "go.etcd.io/bbolt"
)

Expand Down
6 changes: 3 additions & 3 deletions index/unique_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions kv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
2 changes: 1 addition & 1 deletion node.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package storm

import (
"github.com/asdine/storm/codec"
"github.com/asdine/storm/v3/codec"
bolt "go.etcd.io/bbolt"
)

Expand Down
4 changes: 2 additions & 2 deletions node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions q/examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions query.go
Original file line number Diff line number Diff line change
@@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
4 changes: 2 additions & 2 deletions store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
6 changes: 3 additions & 3 deletions store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions storm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion storm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit e6733e1

Please sign in to comment.