Skip to content

Commit 0686009

Browse files
committed
Switch to globalsign/mgo
1 parent 4163684 commit 0686009

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

cursor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package minquery
55
import (
66
"encoding/base64"
77

8-
"gopkg.in/mgo.v2/bson"
8+
"github.com/globalsign/mgo/bson"
99
)
1010

1111
// CursorCodec represents a symmetric pair of functions that can be used to

cursor_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import (
44
"testing"
55
"time"
66

7+
"github.com/globalsign/mgo/bson"
78
"github.com/icza/mighty"
8-
9-
"gopkg.in/mgo.v2/bson"
109
)
1110

1211
func TestDefaultCodec(t *testing.T) {
@@ -17,7 +16,7 @@ func TestDefaultCodec(t *testing.T) {
1716
cd := bson.D{
1817
{Name: "a", Value: 1},
1918
{Name: "b", Value: "2"},
20-
{Name: "c", Value: time.Date(3, 0, 0, 0, 0, 0, 0, time.Local)},
19+
{Name: "c", Value: time.Date(3, 0, 0, 0, 0, 0, 0, time.UTC)},
2120
}
2221
cursor, err := cc.CreateCursor(cd)
2322
eq(nil, err)

minquery.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ package minquery
55
import (
66
"errors"
77

8-
"gopkg.in/mgo.v2"
9-
"gopkg.in/mgo.v2/bson"
8+
"github.com/globalsign/mgo"
9+
"github.com/globalsign/mgo/bson"
1010
)
1111

1212
// DefaultCursorCodec is the default CursorCodec value that is used if none

minquery_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import (
55
"log"
66
"testing"
77

8-
mgo "gopkg.in/mgo.v2"
9-
"gopkg.in/mgo.v2/bson"
10-
8+
"github.com/globalsign/mgo"
9+
"github.com/globalsign/mgo/bson"
1110
"github.com/icza/mighty"
1211
)
1312

0 commit comments

Comments
 (0)