Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collection ¶
func Collection(s *mgo.Session) *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 GetBookById ¶
func GetBookByObjectId ¶
func GetBookByTitle ¶
Click to show internal directories.
Click to hide internal directories.