2024-09-25 22:29:13 +08:00

25 lines
352 B
Go

package controller
import (
"context"
"fmt"
)
// App struct
type App struct {
ctx context.Context
}
func NewApp() *App {
return &App{}
}
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)
}