Skip to content

Commit

Permalink
go-openapi#30 github.com/go-mgo/mgo is no longer maintained
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome-laforge committed Sep 10, 2018
1 parent 6292e8b commit 04228a9
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -11,7 +11,7 @@ install:
- go get -u github.com/mailru/easyjson
- go get -u github.com/go-openapi/errors
- go get -u github.com/mitchellh/mapstructure
- go get -u gopkg.in/mgo.v2/bson
- go get -u github.com/globalsign/mgo/bson
language: go
notifications:
slack:
Expand Down
5 changes: 2 additions & 3 deletions bson.go
Expand Up @@ -19,10 +19,9 @@ import (
"errors"
"fmt"

"github.com/globalsign/mgo/bson"
"github.com/mailru/easyjson/jlexer"
"github.com/mailru/easyjson/jwriter"

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

func init() {
Expand All @@ -36,7 +35,7 @@ func IsBSONObjectID(str string) bool {
return bson.IsObjectIdHex(str)
}

// ObjectId represents a BSON object ID (alias to gopkg.in/mgo.v2/bson.ObjectId)
// ObjectId represents a BSON object ID (alias to github.com/globalsign/mgo/bson.ObjectId)
//
// swagger:strfmt bsonobjectid
type ObjectId bson.ObjectId
Expand Down
3 changes: 1 addition & 2 deletions bson_test.go
Expand Up @@ -17,8 +17,7 @@ package strfmt
import (
"testing"

"gopkg.in/mgo.v2/bson"

"github.com/globalsign/mgo/bson"
"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 1 addition & 2 deletions date.go
Expand Up @@ -20,8 +20,7 @@ import (
"fmt"
"time"

"gopkg.in/mgo.v2/bson"

"github.com/globalsign/mgo/bson"
"github.com/mailru/easyjson/jlexer"
"github.com/mailru/easyjson/jwriter"
)
Expand Down
3 changes: 1 addition & 2 deletions date_test.go
Expand Up @@ -20,8 +20,7 @@ import (
"testing"
"time"

"gopkg.in/mgo.v2/bson"

"github.com/globalsign/mgo/bson"
"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 1 addition & 2 deletions default.go
Expand Up @@ -23,10 +23,9 @@ import (
"strings"

"github.com/asaskevich/govalidator"
"github.com/globalsign/mgo/bson"
"github.com/mailru/easyjson/jlexer"
"github.com/mailru/easyjson/jwriter"

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

const (
Expand Down
2 changes: 1 addition & 1 deletion default_test.go
Expand Up @@ -17,9 +17,9 @@ package strfmt
import (
"testing"

"github.com/globalsign/mgo/bson"
"github.com/pborman/uuid"
"github.com/stretchr/testify/assert"
"gopkg.in/mgo.v2/bson"
)

func testValid(t *testing.T, name, value string) {
Expand Down
3 changes: 1 addition & 2 deletions duration.go
Expand Up @@ -23,8 +23,7 @@ import (
"strings"
"time"

"gopkg.in/mgo.v2/bson"

"github.com/globalsign/mgo/bson"
"github.com/mailru/easyjson/jlexer"
"github.com/mailru/easyjson/jwriter"
)
Expand Down
3 changes: 1 addition & 2 deletions duration_test.go
Expand Up @@ -18,8 +18,7 @@ import (
"testing"
"time"

"gopkg.in/mgo.v2/bson"

"github.com/globalsign/mgo/bson"
"github.com/stretchr/testify/assert"
)

Expand Down
3 changes: 1 addition & 2 deletions time.go
Expand Up @@ -22,8 +22,7 @@ import (
"strings"
"time"

"gopkg.in/mgo.v2/bson"

"github.com/globalsign/mgo/bson"
"github.com/mailru/easyjson/jlexer"
"github.com/mailru/easyjson/jwriter"
)
Expand Down
3 changes: 1 addition & 2 deletions time_test.go
Expand Up @@ -19,8 +19,7 @@ import (
"testing"
"time"

"gopkg.in/mgo.v2/bson"

"github.com/globalsign/mgo/bson"
"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 04228a9

Please sign in to comment.