Docs Menu

Docs HomeGo

MongoDB Go Driver

Welcome to the documentation site for the official MongoDB Go Driver. You can add the driver to your application to work with MongoDB in Go. Download it using go get or set up a runnable project by following our Quick Start guide.

Learn how to establish a connection to MongoDB Atlas and begin working with data in the Quick Start section.

See driver syntax examples for common MongoDB commands in the Quick Reference section.

For fully runnable code snippets and explanations for common methods, see Usage Examples.

Learn how to perform the following tasks using the Go driver in the Fundamentals section:

For detailed information about types and methods in the MongoDB Go driver, see the MongoDB Go Driver API documentation.

Learn how to report bugs, contribute to the driver, and find additional resources for asking questions in the Issues & Help section.

For the compatibility charts that show the recommended Go Driver version for each MongoDB Server version, see Compatibility.

Visit the Developer Hub and MongoDB University to learn more about the MongoDB Go Driver.

The Developer Hub provides tutorials and social engagement for developers.

To learn how to use MongoDB features with the Go driver, see the How To's and Articles page.

To ask questions and engage in discussions with fellow developers using the Go Driver, see the forums page.

Quick Start →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.