osin-mongo-storage icon indicating copy to clipboard operation
osin-mongo-storage copied to clipboard

Use gopkg.in/mgo.v2 for mgo imports

Open byrnedo opened this issue 9 years ago • 0 comments

Hi,

Great project :)

I was trying to integrate with some code of mine and I got cannot use mongo.Conn() (type *"gopkg.in/mgo.v2".Session) as type "labix.org/v2/mgo". I had trouble in the past and apparently it is suggested to use gopkg.in/mgo.v2 instead of labix.org/v2/mgo.

See http://stackoverflow.com/questions/31244438/mgo-newobjectid-corrupt-on-insert for the comment from mgo's maintainer.

byrnedo avatar Dec 02 '15 21:12 byrnedo