Skip to content

Commit e6733e1

Browse files
committed
use semantic import versioning as required by go
1 parent a53b1e4 commit e6733e1

29 files changed

+60
-58
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ go get -u github.com/asdine/storm
5555
## Import Storm
5656

5757
```go
58-
import "github.com/asdine/storm"
58+
import "github.com/asdine/storm/v3"
5959
```
6060

6161
## Open a database
@@ -470,12 +470,12 @@ These can be used by importing the relevant package and use that codec to config
470470

471471
```go
472472
import (
473-
"github.com/asdine/storm"
474-
"github.com/asdine/storm/codec/gob"
475-
"github.com/asdine/storm/codec/json"
476-
"github.com/asdine/storm/codec/sereal"
477-
"github.com/asdine/storm/codec/protobuf"
478-
"github.com/asdine/storm/codec/msgpack"
473+
"github.com/asdine/storm/v3"
474+
"github.com/asdine/storm/v3/codec/gob"
475+
"github.com/asdine/storm/v3/codec/json"
476+
"github.com/asdine/storm/v3/codec/sereal"
477+
"github.com/asdine/storm/v3/codec/protobuf"
478+
"github.com/asdine/storm/v3/codec/msgpack"
479479
)
480480

481481
var gobDb, _ = storm.Open("gob.db", storm.Codec(gob.Codec))

codec/example_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ package codec_test
33
import (
44
"fmt"
55

6-
"github.com/asdine/storm"
7-
"github.com/asdine/storm/codec/gob"
8-
"github.com/asdine/storm/codec/json"
9-
"github.com/asdine/storm/codec/msgpack"
10-
"github.com/asdine/storm/codec/protobuf"
11-
"github.com/asdine/storm/codec/sereal"
6+
"github.com/asdine/storm/v3"
7+
"github.com/asdine/storm/v3/codec/gob"
8+
"github.com/asdine/storm/v3/codec/json"
9+
"github.com/asdine/storm/v3/codec/msgpack"
10+
"github.com/asdine/storm/v3/codec/protobuf"
11+
"github.com/asdine/storm/v3/codec/sereal"
1212
)
1313

1414
func Example() {

codec/gob/gob_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package gob
33
import (
44
"testing"
55

6-
"github.com/asdine/storm/codec/internal"
6+
"github.com/asdine/storm/v3/codec/internal"
77
)
88

99
func TestGob(t *testing.T) {

codec/internal/test_helpers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"reflect"
66
"testing"
77

8-
"github.com/asdine/storm/codec"
8+
"github.com/asdine/storm/v3/codec"
99
)
1010

1111
type testStruct struct {

codec/json/json_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package json
33
import (
44
"testing"
55

6-
"github.com/asdine/storm/codec/internal"
6+
"github.com/asdine/storm/v3/codec/internal"
77
)
88

99
func TestJSON(t *testing.T) {

codec/msgpack/msgpack_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package msgpack
33
import (
44
"testing"
55

6-
"github.com/asdine/storm/codec/internal"
6+
"github.com/asdine/storm/v3/codec/internal"
77
)
88

99
func TestMsgpack(t *testing.T) {

codec/protobuf/protobuf.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package protobuf
44
import (
55
"errors"
66

7-
"github.com/asdine/storm/codec/json"
7+
"github.com/asdine/storm/v3/codec/json"
88
"github.com/golang/protobuf/proto"
99
)
1010

codec/protobuf/protobuf_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"path/filepath"
77
"testing"
88

9-
"github.com/asdine/storm"
10-
"github.com/asdine/storm/codec/internal"
9+
"github.com/asdine/storm/v3"
10+
"github.com/asdine/storm/v3/codec/internal"
1111
"github.com/stretchr/testify/require"
1212
)
1313

codec/sereal/sereal_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package sereal
33
import (
44
"testing"
55

6-
"github.com/asdine/storm/codec/internal"
6+
"github.com/asdine/storm/v3/codec/internal"
77
"github.com/stretchr/testify/require"
88
)
99

examples_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/asdine/storm"
13-
"github.com/asdine/storm/codec/gob"
12+
"github.com/asdine/storm/v3"
13+
"github.com/asdine/storm/v3/codec/gob"
1414
bolt "go.etcd.io/bbolt"
1515
)
1616

extract.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"strconv"
77
"strings"
88

9-
"github.com/asdine/storm/index"
9+
"github.com/asdine/storm/v3/index"
1010
bolt "go.etcd.io/bbolt"
1111
)
1212

finder.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"reflect"
66

7-
"github.com/asdine/storm/index"
8-
"github.com/asdine/storm/q"
7+
"github.com/asdine/storm/v3/index"
8+
"github.com/asdine/storm/v3/q"
99
bolt "go.etcd.io/bbolt"
1010
)
1111

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/asdine/storm
1+
module github.com/asdine/storm/v3
22

33
require (
44
github.com/Sereal/Sereal v0.0.0-20190618215532-0b8ac451a863
@@ -10,3 +10,5 @@ require (
1010
github.com/vmihailenco/msgpack v4.0.1+incompatible
1111
go.etcd.io/bbolt v1.3.0
1212
)
13+
14+
go 1.13

index/list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package index
33
import (
44
"bytes"
55

6-
"github.com/asdine/storm/internal"
6+
"github.com/asdine/storm/v3/internal"
77
bolt "go.etcd.io/bbolt"
88
)
99

index/list_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"path/filepath"
99
"testing"
1010

11-
"github.com/asdine/storm"
12-
"github.com/asdine/storm/codec/gob"
13-
"github.com/asdine/storm/index"
11+
"github.com/asdine/storm/v3"
12+
"github.com/asdine/storm/v3/codec/gob"
13+
"github.com/asdine/storm/v3/index"
1414
bolt "go.etcd.io/bbolt"
1515
"github.com/stretchr/testify/require"
1616
)

index/unique.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package index
33
import (
44
"bytes"
55

6-
"github.com/asdine/storm/internal"
6+
"github.com/asdine/storm/v3/internal"
77
bolt "go.etcd.io/bbolt"
88
)
99

index/unique_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"path/filepath"
88
"testing"
99

10-
"github.com/asdine/storm"
11-
"github.com/asdine/storm/codec/gob"
12-
"github.com/asdine/storm/index"
10+
"github.com/asdine/storm/v3"
11+
"github.com/asdine/storm/v3/codec/gob"
12+
"github.com/asdine/storm/v3/index"
1313
bolt "go.etcd.io/bbolt"
1414
"github.com/stretchr/testify/require"
1515
)

kv_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/asdine/storm/codec/gob"
9-
"github.com/asdine/storm/codec/json"
8+
"github.com/asdine/storm/v3/codec/gob"
9+
"github.com/asdine/storm/v3/codec/json"
1010
bolt "go.etcd.io/bbolt"
1111
"github.com/stretchr/testify/require"
1212
)

node.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package storm
22

33
import (
4-
"github.com/asdine/storm/codec"
4+
"github.com/asdine/storm/v3/codec"
55
bolt "go.etcd.io/bbolt"
66
)
77

node_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package storm
33
import (
44
"testing"
55

6-
"github.com/asdine/storm/codec/gob"
7-
"github.com/asdine/storm/codec/json"
6+
"github.com/asdine/storm/v3/codec/gob"
7+
"github.com/asdine/storm/v3/codec/json"
88
bolt "go.etcd.io/bbolt"
99
"github.com/stretchr/testify/require"
1010
)

options.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package storm
33
import (
44
"os"
55

6-
"github.com/asdine/storm/codec"
7-
"github.com/asdine/storm/index"
6+
"github.com/asdine/storm/v3/codec"
7+
"github.com/asdine/storm/v3/index"
88
bolt "go.etcd.io/bbolt"
99
)
1010

q/examples_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"path/filepath"
1313
"strings"
1414

15-
"github.com/asdine/storm"
16-
"github.com/asdine/storm/q"
15+
"github.com/asdine/storm/v3"
16+
"github.com/asdine/storm/v3/q"
1717
)
1818

1919
func ExampleRe() {

query.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package storm
22

33
import (
4-
"github.com/asdine/storm/internal"
5-
"github.com/asdine/storm/q"
4+
"github.com/asdine/storm/v3/internal"
5+
"github.com/asdine/storm/v3/q"
66
bolt "go.etcd.io/bbolt"
77
)
88

query_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/asdine/storm/codec/json"
8-
"github.com/asdine/storm/q"
7+
"github.com/asdine/storm/v3/codec/json"
8+
"github.com/asdine/storm/v3/q"
99
"github.com/stretchr/testify/require"
1010
)
1111

sink.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"reflect"
55
"sort"
66
"time"
7-
"github.com/asdine/storm/index"
8-
"github.com/asdine/storm/q"
7+
"github.com/asdine/storm/v3/index"
8+
"github.com/asdine/storm/v3/q"
99
bolt "go.etcd.io/bbolt"
1010
)
1111

store.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"bytes"
55
"reflect"
66

7-
"github.com/asdine/storm/index"
8-
"github.com/asdine/storm/q"
7+
"github.com/asdine/storm/v3/index"
8+
"github.com/asdine/storm/v3/q"
99
bolt "go.etcd.io/bbolt"
1010
)
1111

store_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/asdine/storm/codec/gob"
10-
"github.com/asdine/storm/codec/json"
11-
"github.com/asdine/storm/q"
9+
"github.com/asdine/storm/v3/codec/gob"
10+
"github.com/asdine/storm/v3/codec/json"
11+
"github.com/asdine/storm/v3/q"
1212
"github.com/stretchr/testify/require"
1313
bolt "go.etcd.io/bbolt"
1414
)

storm.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"encoding/binary"
66
"time"
77

8-
"github.com/asdine/storm/codec"
9-
"github.com/asdine/storm/codec/json"
8+
"github.com/asdine/storm/v3/codec"
9+
"github.com/asdine/storm/v3/codec/json"
1010
bolt "go.etcd.io/bbolt"
1111
)
1212

storm_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/asdine/storm/codec/json"
14+
"github.com/asdine/storm/v3/codec/json"
1515
bolt "go.etcd.io/bbolt"
1616
"github.com/stretchr/testify/require"
1717
)

0 commit comments

Comments
 (0)