Add daily weekly monthly and yearly view for food

This commit is contained in:
2024-08-09 16:31:00 +02:00
parent 66a6cb69d6
commit 7683ccd5e1
2 changed files with 132 additions and 3 deletions

11
main.go
View File

@@ -63,12 +63,19 @@ func main() {
// os.Exit(1)
// }
food, err := foodService.Create(Food{food: "test", amount: 1})
// food, err := foodService.Create(Food{food: "test", amount: 1})
// if err != nil {
// Error.Printf("%++v", err)
// os.Exit(1)
// }
// log.Println(food)
daily, err := foodService.GetDaily()
if err != nil {
Error.Printf("%++v", err)
os.Exit(1)
}
log.Println(food)
log.Println(daily)
log.Println("done")
wg.Wait()