Mongo-go-driver and mongo-driver

Hello, may be a silly question, but I found in GitHub there is a version of mongo-go-driver,

and I import the one

what’s the difference of the two drivers? thanks.


These are the same thing. is a redirect to There’s some information about custom import paths at go command - cmd/go - Go Packages.

– Divjot

Hello Divjot,

We use gitlab build our revision control system which is used only in our company, in this case I should use or mongodb · GitHub, or both will work fine.



You should use for all import paths. Your choice of version control system shouldn’t matter for this. Basically, Go will try to fetch the dependencies from, which will reroute to and it can download the dependencies from there as it needs.

Wow, An answer in 5 minute! Thank you so much!