DEV Community

Discussion on: MongoDB Golang Driver Tutorial

Collapse
 
esker profile image
Isaac Gibbs

Question, how does one connect to a replica set using this driver?

Currently I have
mongoServerUrl = "mongodb://localhost:27017,localhost:27018,localhost:27019/?replicaSet=rs0/"

which times out any help would be amazing!