Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Movie ¶
type Movie struct { ID bson.ObjectId `bson:"_id" json:"id"` Name string `bson:"name" json:"name"` CoverImage string `bson:"cover_image" json:"cover_image"` Description string `bson:"description" json:"description"` }
Movie struct uses bson keyword to tell the mgo driver how to name the properties in mongodb document
Click to show internal directories.
Click to hide internal directories.