Go and MongoDB REST API for Beginners (#2 – Database)
In part 2 of the Go and MongoDB REST API for Beginners series, you’ll learn how to:
– Connect a Go REST API to MongoDB
– Create a reusable handler to pass the MongoDB client to controllers
– Return a greeting message with data from MongoDB
🖥️ Repository (source code)
https://github.com/webdevfuel/go-mongodb-rest-api