Original post

So I have been learning these past few months, and I have switched from my normal Node backend architecture to Go. I have replaced Express with Gin and it feels amazing. Just looking at Go code is amazing, like that level of elegancy is unseen. Anyways my question is how do you guys deal with MongoDB connection on Go. There is not much resources online, and I have encountered unmarshal dns error. Thing that weirds me out is that, it perfectly works on local machine, only on VPS it shows such an error. I saw issues on MongoDB JIRA page, and they all seem to be closed without proper fix. If anyone else is using MongoDB I would love to see how you guys connect to MongoDB locally, or Atlas.