Skip to content

Commit

Permalink
Switch to globalsign/mgo
Browse files Browse the repository at this point in the history
  • Loading branch information
icza committed Jun 18, 2018
1 parent 4163684 commit 0686009
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cursor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package minquery
import (
"encoding/base64"

"gopkg.in/mgo.v2/bson"
"github.com/globalsign/mgo/bson"
)

// CursorCodec represents a symmetric pair of functions that can be used to
Expand Down
5 changes: 2 additions & 3 deletions cursor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"testing"
"time"

"github.com/globalsign/mgo/bson"
"github.com/icza/mighty"

"gopkg.in/mgo.v2/bson"
)

func TestDefaultCodec(t *testing.T) {
Expand All @@ -17,7 +16,7 @@ func TestDefaultCodec(t *testing.T) {
cd := bson.D{
{Name: "a", Value: 1},
{Name: "b", Value: "2"},
{Name: "c", Value: time.Date(3, 0, 0, 0, 0, 0, 0, time.Local)},
{Name: "c", Value: time.Date(3, 0, 0, 0, 0, 0, 0, time.UTC)},
}
cursor, err := cc.CreateCursor(cd)
eq(nil, err)
Expand Down
4 changes: 2 additions & 2 deletions minquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package minquery
import (
"errors"

"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"github.com/globalsign/mgo"
"github.com/globalsign/mgo/bson"
)

// DefaultCursorCodec is the default CursorCodec value that is used if none
Expand Down
5 changes: 2 additions & 3 deletions minquery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ import (
"log"
"testing"

mgo "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"

"github.com/globalsign/mgo"
"github.com/globalsign/mgo/bson"
"github.com/icza/mighty"
)

Expand Down

0 comments on commit 0686009

Please sign in to comment.