I wrote a very simple package (with no dependencies other than mongodb driver itself) following go idiomatic patterns to connect to MongoDB and it was well received.
It uses functional ops pattern to support all different connection types supported by MongoDB while keeping it extremely simple for people who are happy with defaults.
@Ramesh_Sunkara, this is fantastic! The package looks really clean, and the way you’ve used functional options for things like logging and replica sets is great because it keeps the core connection setup simple while still providing flexibility for anyone who needs customization.
Great work! Thank you for building and sharing it on the MongoDB Community Hub. I will share it internally with the team