Fix up and export food service

This commit is contained in:
2024-08-09 17:18:16 +02:00
parent 9fdb7bc098
commit 683c443b7f
2 changed files with 7 additions and 28 deletions

10
app.go
View File

@@ -2,7 +2,6 @@ package main
import (
"context"
"fmt"
)
// App struct
@@ -21,11 +20,6 @@ func (a *App) startup(ctx context.Context) {
a.ctx = ctx
}
// Greet returns a greeting for the given name
func (a *App) Greet(name string) string {
return fmt.Sprintf("Hello %s, It's show time!", name)
}
func (a *App) Foo() string {
return "bar"
func (a *App) GetFood() ([]Food, error) {
return foodService.GetRecent()
}