初始化

This commit is contained in:
李琦
2026-06-11 15:46:19 +08:00
commit 6dfe73191c
40 changed files with 2916 additions and 0 deletions

22
app.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"context"
"fmt"
)
type App struct {
ctx context.Context
}
func NewApp() *App {
return &App{}
}
func (a *App) startup(ctx context.Context) {
a.ctx = ctx
}
func (a *App) Greet(name string) string {
return fmt.Sprintf("Hello %s, It's show time!", name)
}