Documentation ¶
Index ¶
Constants ¶
View Source
const COLLECTION = "books"
Variables ¶
This section is empty.
Functions ¶
func Collection ¶
func Collection(d *mgo.Database) *mgo.Collection
Types ¶
type Book ¶
type Book struct { Id bson.ObjectId `bson:"_id,omitempty"` Title string `bson:"Title"` Body string `bson:"Body"` Tags []string `bson:"Tags"` }
func FindByBookId ¶
func FindByObjectId ¶
func FindByTitle ¶
Click to show internal directories.
Click to hide internal directories.