Fix up and export food service
This commit is contained in:
10
app.go
10
app.go
@@ -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()
|
||||
}
|
Reference in New Issue
Block a user