Documentation ¶ Index ¶ func GetDbMap() *gorp.DbMap func GetMealData(dbMap *gorp.DbMap, meal string) string func InsertFood(dbMap *gorp.DbMap, food *Food) error func StoreDailyData(dbMap *gorp.DbMap) type Food func GetFoodByMeal(dbMap *gorp.DbMap, meal string) (foods []*Food) func VoteById(dbMap *gorp.DbMap, foodid int64, up bool) (food *Food) type Halls type Meals type SFood Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetDbMap ¶ func GetDbMap() *gorp.DbMap write get comments func GetMealData ¶ func GetMealData(dbMap *gorp.DbMap, meal string) string func InsertFood ¶ func InsertFood(dbMap *gorp.DbMap, food *Food) error func StoreDailyData ¶ func StoreDailyData(dbMap *gorp.DbMap) Types ¶ type Food ¶ type Food struct { Id int //`db:"foodid"` Name string //`db:"fname"` Hall string //`db:"hall` Votes int //`db:"votes` Date string //`db:"date` Meal string //`db:"meal` Filters string //'db:"filters Comments string //`comments` } func GetFoodByMeal ¶ func GetFoodByMeal(dbMap *gorp.DbMap, meal string) (foods []*Food) func VoteById ¶ func VoteById(dbMap *gorp.DbMap, foodid int64, up bool) (food *Food) type Halls ¶ type Halls struct { Roma Meals `json:"roma"` Wucox Meals `json:"wucox"` Whitman Meals `json:"whitman"` Forbes Meals `json:"forbes"` Grad Meals `json:"grad"` CJL Meals `json:"cjl"` } type Meals ¶ type Meals struct { Breakfast []SFood `json:"Breakfast"` Lunch []SFood `json:"Lunch"` Dinner []SFood `json:"Dinner"` } type SFood ¶ type SFood struct { Name string Filt []string } Source Files ¶ View all Source files food.go scrape.go Click to show internal directories. Click to hide internal directories.