O'Reilly logo

Web Development with Go: Building Scalable Web Apps and RESTful Services by Shiju Varghese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

image

Persistence with MongoDB

When you build web applications, persistence of application data is very important. You can define the data model of your Go applications using structs, in which you can program against the structs for working with application data, but you need persistent storage for your application data.

This chapter shows you how to persist application data into MongoDB, which is a popular NoSQL database.

This chapter covers the following:

  • Introduction to MongoDB
  • The mgo package
  • Working with MongoDB using mgo
  • Persistence with MongoDB

Introduction to MongoDB

MongoDB is a popular NoSQL database that has been widely used for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required