Could someone shed some light on the difference between these two import statements for the same mgo (MongoDB/golang) library:
gopkg.in/mgo.v2
labix.org/v2/mgo
I know you have to pick one or the other, but they both seem to work the same for me. Why are there two and which one should I be using?
They are the same package, and there is no canonical import enforced for mgo.
Use the "gopkg.in/mgo.v2", if only because that's what the documentation states.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.