Ejemplo n.º 1
0
func NewProductStore(db *mgo.Database) *ProductStore {
	return &ProductStore{*storable.NewStore(db, "products")}
}
Ejemplo n.º 2
0
func NewAnotherModelStore(db *mgo.Database, foo bool) *AnotherModelStore {
	return &AnotherModelStore{
		*storable.NewStore(db, "another_model"), foo,
	}
}